コード例 #1
0
 /// <summary>
 /// Move a folder.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Folders or Folders.Write.
 ///
 /// Required permissions: (Units.Delete - Move any folder) and
 /// (SubFolders.Delete - Move folder only if user has SubFolders.Delete
 /// permission on it) and (Units.Create - Move to any target folder) and
 /// (SubFolders.Create - Move to folder if user has SubFolders.Create
 /// permission on target) and (Units.Edit - Move to any target folder) and
 /// (SubFolders.Edit - Move to folder if user has SubFolders.Edit permission on
 /// target).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='folderId'>
 /// Id of the folder to be moved
 /// </param>
 /// <param name='targetParentId'>
 /// Id of the target parent
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task MoveFolderByFolderidAsync(this IFolders operations, long folderId, long?targetParentId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.MoveFolderByFolderidWithHttpMessagesAsync(folderId, targetParentId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }