IGraphClientAsync.CreateCategoryAsync
IGraphClientAsync.CreateCategoryAsync method
Asynchronously creates a new Outlook category.
public Task<OutlookCategory> CreateCategoryAsync(string displayName, CategoryPreset preset,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| displayName | String | The display name of the category. |
| preset | CategoryPreset | The category preset. |
| 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 OutlookCategory.
See Also
- class OutlookCategory
- enum CategoryPreset
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email