IGraphClientAsync.CreateCategoryAsync

IGraphClientAsync.CreateCategoryAsync method

Asynchronously creates a new Outlook category.

public Task<OutlookCategory> CreateCategoryAsync(string displayName, CategoryPreset preset, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
displayNameStringThe display name of the category.
presetCategoryPresetThe category preset.
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 OutlookCategory.

See Also