IGraphClientAsync.CreateTaskAsync

IGraphClientAsync.CreateTaskAsync method

Asynchronously creates a task in the specified task list.

public Task<MapiTask> CreateTaskAsync(MapiTask task, string taskListUri, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
taskMapiTaskThe MapiTask to create.
taskListUriStringThe URI of the task list.
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 MapiTask.

See Also