How to create a catalogue in OneDriveClient



  • How to create a catalogue by IOneDriveClient (sighs)OneDriveClientExtensions.GetUniversalClient(scopes)? The search only gives reading and creating files and catalogues. But I didn't find a catalogue. No REST!



  • https://msdn.microsoft.com/en-us/library/office/dn659743.aspx

    https://msdn.microsoft.com/ru-ru/library/hh826531.aspx

    Found what you need:

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

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



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2