ITaskManagementConnector.AddTaskAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
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.