IGraphClientAsync.CreateFolderAsync
Contents
[
Hide
]CreateFolderAsync(string, CancellationToken)
Asynchronously creates a new folder.
public Task<FolderInfo> CreateFolderAsync(string folderName,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| folderName | String | Folder name. |
| cancellationToken | CancellationToken | A 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
- class FolderInfo
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email
CreateFolderAsync(string, string, CancellationToken)
Asynchronously creates a new folder under a parent folder.
public Task<FolderInfo> CreateFolderAsync(string parentFolderId, string folderName,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| parentFolderId | String | Parent folder id. |
| folderName | String | Folder name. |
| cancellationToken | CancellationToken | A 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
- class FolderInfo
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email