IGraphClientAsync.CreateFolderAsync

CreateFolderAsync(string, CancellationToken)

Asynchronously creates a new folder.

public Task<FolderInfo> CreateFolderAsync(string folderName, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderNameStringFolder name.
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 created folder.

See Also


CreateFolderAsync(string, string, CancellationToken)

Asynchronously creates a new folder under a parent folder.

public Task<FolderInfo> CreateFolderAsync(string parentFolderId, string folderName, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
parentFolderIdStringParent folder id.
folderNameStringFolder name.
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 created folder.

See Also