对于我的生活,我无法找到如何使用OneDrive SDK创建文件夹或列出所有文件夹。请注意,这是使用SDK NOT Api。有人可以告诉我该怎么做吗?
我的目标是允许用户使用onedrive SDK使用onedrive应用程序将文件上传到自定义目录
答案 0 :(得分:0)
据我所知,SDK在框中使用相同的API。无论如何,你可以尝试以下方式:
string MyEnumType = "SpaghettiDiameter";
string MyEnumValue = "NEEDS_ALL_SAUCE";
//this is not exact syntax - only to represent the logic
//MyEnumValue is converted from string to the type contained in MyEnumType
var Dinner = Convert(MyEnumValue, MyEnumType);
https://github.com/OneDrive/onedrive-sdk-csharp/issues/24 https://github.com/OneDrive/onedrive-sdk-csharp/blob/master/docs/items.md#create-a-folder