MicrosoftToDoConnector.AddTaskAsync Method

Definition

Add a task to the specified list.

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask> AddTaskAsync(string listId, Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask task, System.Threading.CancellationToken cancellationToken = default);
abstract member AddTaskAsync : string * Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask>
override this.AddTaskAsync : string * Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask>
Public Function AddTaskAsync (listId As String, task As TaskManagementTask, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TaskManagementTask)

Parameters

listId
String

ID of the list in which to add the task.

task
TaskManagementTask

Task to add.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Added task definition.

Implements

Applies to