TeamsInfo.GetOperationStateAsync 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.
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.