DelegatingTurnContext<T>.DeleteActivityAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DeleteActivityAsync(ConversationReference, CancellationToken) |
刪除現有活動。 |
DeleteActivityAsync(String, CancellationToken) |
刪除現有活動。 |
DeleteActivityAsync(ConversationReference, CancellationToken)
刪除現有活動。
public System.Threading.Tasks.Task DeleteActivityAsync (Microsoft.Bot.Schema.ConversationReference conversationReference, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteActivityAsync : Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteActivityAsync : Microsoft.Bot.Schema.ConversationReference * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteActivityAsync (conversationReference As ConversationReference, Optional cancellationToken As CancellationToken = Nothing) As Task
參數
- conversationReference
- ConversationReference
包含要刪除之活動的交談。
- cancellationToken
- CancellationToken
取消語彙基元,可由其他物件或執行緒用來接收取消通知。
傳回
工作,表示要執行的工作已排入佇列。
實作
備註
交談參考的 ActivityId 表示要刪除之交談中的活動。
並非所有通道都支援這項作業。 對於沒有的通道,此呼叫可能會擲回例外狀況。
另請參閱
- DeleteActivityAsync(String, CancellationToken)
- SendActivitiesAsync(IActivity[], CancellationToken)
- UpdateActivityAsync(IActivity, CancellationToken)
- OnDeleteActivity(DeleteActivityHandler)
適用於
DeleteActivityAsync(String, CancellationToken)
刪除現有活動。
public System.Threading.Tasks.Task DeleteActivityAsync (string activityId, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteActivityAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteActivityAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteActivityAsync (activityId As String, Optional cancellationToken As CancellationToken = Nothing) As Task
參數
- activityId
- String
要刪除之活動的識別碼。
- cancellationToken
- CancellationToken
取消語彙基元,可由其他物件或執行緒用來接收取消通知。
傳回
工作,表示要執行的工作已排入佇列。
實作
另請參閱
- DeleteActivityAsync(ConversationReference, CancellationToken)
- SendActivitiesAsync(IActivity[], CancellationToken)
- UpdateActivityAsync(IActivity, CancellationToken)
- OnDeleteActivity(DeleteActivityHandler)