如何在OneDriveClient中创建文件夹

时间:2015-12-18 16:21:40

标签: c# uwp onedrive windows-10-universal

如何在IOneDriveClientOneDriveClientExtensions.GetUniversalClient(scopes))中创建?不是REST!

1 个答案:

答案 0 :(得分:4)

以下是创建文件夹的方法:

 var folderToCreate = new Item { Name = folderName, Folder = new Folder() };
    var newFolder = await client.Drive.Items[parentId].Children.Request().AddAsync(folderToCreate);

https://github.com/OneDrive/onedrive-sdk-csharp/issues/24