IStatePropertyAccessor<T>.SetAsync 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.
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.