IGraphClientAsync.ListCategoriesAsync

IGraphClientAsync.ListCategoriesAsync method

Asynchronously lists Outlook categories.

public Task<List<OutlookCategory>> ListCategoriesAsync(ODataQueryBuilder queryBuilder = null, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
queryBuilderODataQueryBuilderOptional OData query builder for filtering categories.
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 list of OutlookCategory.

See Also