IGraphClientAsync.FetchCategoryAsync

IGraphClientAsync.FetchCategoryAsync method

Asynchronously fetches an Outlook category by its ID.

public Task<OutlookCategory> FetchCategoryAsync(string itemId, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
itemIdStringThe ID of the category to fetch.
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 fetched OutlookCategory.

See Also