IStatePropertyAccessor<T>.SetAsync 方法

定义

在源上设置属性值。

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

参数

turnContext
ITurnContext

轮次上下文。

value
T

要设置的值。

cancellationToken
CancellationToken

取消标记。

返回

表示异步操作的 Task

适用于