Discuss this help topic in SecureBlackbox Forum

Clouds: Restore deleted folder

As long as the folder is in Trash, you can restore it by calling TElBoxDataStorage.Restore() method. By default the folder will be restored to the old parent folder and with the same name. You can change this behaviod by calling Restore() method and passing it new parent folder and/or new name.

C#:


TElBoxFolder trashedFolder = storage.AcquireTrashedFolder(@"...");
Console.WriteLine("Folder: {0}", trashedFolder.Name);

// restore to the same parent folder with a new name
trashedFolder.Restore(null, "New Folder Name");
Console.WriteLine("Folder: {0}", trashedFolder.Name);

trashedFolder.Release();

How To articles about Box.com cloud

Discuss this help topic in SecureBlackbox Forum