MicrosoftToDoConnector.GetTasksAsync 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.
Get the all tasks in a task list.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask>> GetTasksAsync(string listId, bool includeCompleted, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTasksAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask>>
override this.GetTasksAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.SemanticKernel.Plugins.MsGraph.Models.TaskManagementTask>>
Public Function GetTasksAsync (listId As String, includeCompleted As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of TaskManagementTask))
Parameters
- listId
- String
ID of the list from which to get the tasks.
- includeCompleted
- Boolean
Whether to include completed tasks.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
All of the tasks in the specified task list.