TeamsInfo.GetOperationStateAsync Method

Definition

Gets the state of an operation.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.BatchOperationState> GetOperationStateAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string operationId, System.Threading.CancellationToken cancellationToken = default);
static member GetOperationStateAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.BatchOperationState>
Public Shared Function GetOperationStateAsync (turnContext As ITurnContext, operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BatchOperationState)

Parameters

turnContext
ITurnContext

Turn context.

operationId
String

The operationId to get the state of.

cancellationToken
CancellationToken

The cancellation token.

Returns

The state and responses of the operation.

Applies to