San*_*rty 13 c# google-api google-apps
我是以编程方式将数据上传到Google应用.我使用以下代码
MailItemEntry[] entries = new MailItemEntry[1];
entries[0] = new MailItemEntry();
entries[0].BatchData = new Google.GData.Client.GDataBatchEntryData();
MailItemFeed feed = mailItemService.Batch(domain, UserName, entries);
Run Code Online (Sandbox Code Playgroud)
有没有办法找出已上传到谷歌应用程序的数据量(以MB或GB为单位).提前致谢.
您可以做什么,它利用BatchAsync并mailItemService连接到AsyncOperationProgress事件。这会以百分比形式告诉您已发送的数据量。请注意,这BatchAsync是一个非阻塞调用,因此您的应用程序将需要更改。
如果您有权访问正在发送的数据的长度,则可以计算每个进度更改事件增加了多少。
请参阅 Google 文档 http://google-gdata.googlecode.com/svn-history/r902/docs/folder4/AllMembers_T_Google_GData_Apps_Migration_MailItemService.htm
MSDN http://msdn.microsoft.com/en-us/library/system.componentmodel.progresschangedeventargs.aspx
希望有帮助