語言

BotState.DeletePropertyValueAsync 方法

定義

刪除狀態快取中的屬性。BotState

protected System.Threading.Tasks.Task DeletePropertyValueAsync(Microsoft.Bot.Builder.ITurnContext turnContext, string propertyName, System.Threading.CancellationToken cancellationToken = default);
member this.DeletePropertyValueAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Function DeletePropertyValueAsync (turnContext As ITurnContext, propertyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

參數

turnContext
ITurnContext

這個回合的內容物件。

propertyName
String

屬性的名稱。

cancellationToken
CancellationToken

一種可被其他物件或執行緒用來接收取消通知的取消標記。

傳回

工作,表示要執行的工作佇列。

例外狀況

turnContext 或 propertyName 為 null。

適用於