Discuss this help topic in SecureBlackbox Forum
Clouds: Create folder
To create a new folder
- Obtain the instance of TElOneDriveFolder
for the parent folder, in which you need to create a new folder.
- Use TElOneDriveFolder.CreateFolder() method and pass it
the name of the new folder (mandatory) and description (optional).
If the new folder is created successfully, the method returns an instance of
TElOneDriveFolder for the newly created folder.
If there was a problem during folder ceration (eg. the name is already used), EElOneDriveServerError will be thrown.
Code property of the exception object will tell you the reason of the problem.
Remember to call TElOneDriveFolder.Release() method when you don't need the folder object anymore.
C#:
TElOneDriveFolder newFolder = root.CreateFolder("New Folder");
Console.WriteLine("New folder: {0} ({1}, id = {2})",
newFolder.Name, newFolder.ObjectType, newFolder.ID);
newFolder.Release();
How To articles about OneDrive cloud
Discuss this help topic in SecureBlackbox Forum