IPWorks Cloud 2020 .NET Edition

Questions / Feedback?

RestoreResource Method

Restores a resource from the trash.

Syntax

public void RestoreResource(string resourceId, string parentId, string newName);
Public Sub RestoreResource(ByVal ResourceId As String, ByVal ParentId As String, ByVal NewName As String)

Remarks

This method restores the resource specified by ResourceId from the trash.

Box will always ignore ParentId and/or NewName in favor of restoring a trashed resource to its original location with its original name if possible. The ParentId and NewName parameters are only considered if one or both of the following are true:

  • The original parent folder resource no longer exists (in which case ParentId will be used instead, if not empty).
  • The original resource name is already in use in the original (or new) parent folder (in which case NewName will be used instead, if not empty).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 .NET Edition - Version 20.0 [Build 8265]