Jaa


IStatePropertyAccessor<T>.SetAsync Method

Definition

Set the property value on the source.

public System.Threading.Tasks.Task SetAsync (Microsoft.Bot.Builder.ITurnContext turnContext, T value, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAsync : Microsoft.Bot.Builder.ITurnContext * 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SetAsync (turnContext As ITurnContext, value As T, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

turnContext
ITurnContext

Turn Context.

value
T

The value to set.

cancellationToken
CancellationToken

The cancellation token.

Returns

A Task representing the asynchronous operation.

Applies to