IGraphClientAsync.CopyFolderAsync

IGraphClientAsync.CopyFolderAsync method

Asynchronously copies a mailfolder and its contents to another mailfolder.

public Task<FolderInfo> CopyFolderAsync(string newParentId, string itemId, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
newParentIdStringNew parent folder id.
itemIdStringItem id to be copied.
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 copied folder.

See Also