IGraphClientAsync.MoveFolderAsync

IGraphClientAsync.MoveFolderAsync method

Asynchronously moves a mailfolder and its contents to another mailfolder.

public Task<FolderInfo> MoveFolderAsync(string newParentId, string itemId, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
newParentIdStringNew parent folder id.
itemIdStringItem id to be moved.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous operation. The task result contains the moved folder.

See Also