如何使用c#获取onedrive文件夹的文件夹ID [英] how to get folder id of folder in onedrive using c#
本文介绍了如何使用c#获取onedrive文件夹的文件夹ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI,
我使用下面的链接来读取一个驱动器上文件夹的文件夹ID属性。
http:// msdn.microsoft.com/en-us/library/windows/apps/hh826531.aspx [ ^ ]
这里他们正在使用一些代码链接读取文件夹属性
i am using below link to read folder id property of a folder on the one drive.
http://msdn.microsoft.com/en-us/library/windows/apps/hh826531.aspx[^]
here they are reading folder property using some code link
private async void btnReadFolder_Click(object sender, RoutedEventArgs e)
{
try
{
LiveConnectClient liveClient = new LiveConnectClient(this.session);
LiveOperationResult operationResult =
await liveClient.GetAsync("folder.8c8ce076ca27823f.8C8CE076CA27823F!126");
dynamic result = operationResult.Result;
infoTextBlock.Text = "Folder name: " + result.name + ", ID: " + result.id;
}
catch (LiveConnectException exception)
{
infoTextBlock.Text = "Error getting folder info: " + exception.Message;
}
}
现在我不知道从哪里得到folder.8c8ce076ca27823f.8C8CE076CA27823F!126我的文件夹这种字符串?有没有人对此有所了解?
now i don't know where to get "folder.8c8ce076ca27823f.8C8CE076CA27823F!126" this kind of string for my folder ? does anyone have idea about this ?
推荐答案
文件和文件夹属性(使用C#/ VB和XAML的Windows运行时应用程序) [ ^ ]
使用Microsoft OneDrive文件夹和文件(Live Connect) [ ^ ]
File and folder properties (Windows Runtime apps using C#/VB and XAML)[^]
Working with Microsoft OneDrive folders and files (Live Connect)[^]
这篇关于如何使用c#获取onedrive文件夹的文件夹ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文