共用方式為


CloudSkillHandler.OnUpdateActivityAsync 方法

定義

OnUpdateActivityAsync () API。

protected override System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> OnUpdateActivityAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
override this.OnUpdateActivityAsync : System.Security.Claims.ClaimsIdentity * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Protected Overrides Function OnUpdateActivityAsync (claimsIdentity As ClaimsIdentity, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

參數

claimsIdentity
ClaimsIdentity

bot 的 claimsIdentity 應具有 AudienceClaim、AppIdClaim 和 ServiceUrlClaim。

conversationId
String

交談識別碼。

activityId
String

要更新的 activityId。

activity
Activity

取代活動。

cancellationToken
CancellationToken

取消語彙基元。

傳回

資源回應的工作。

適用於