IGraphClientAsync.ListTasksAsync

IGraphClientAsync.ListTasksAsync method

Asynchronously lists tasks in the specified task list.

public Task<MapiTaskCollection> ListTasksAsync(string id, ODataQueryBuilder queryBuilder = null, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
idStringThe ID of the task list.
queryBuilderODataQueryBuilderOptional OData query builder for filtering tasks.
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 collection of MapiTask.

See Also