共用方式為


CloudSkillHandler.OnGetConversationMemberAsync 方法

定義

適用于技能的 GetConversationMember () API。

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

參數

claimsIdentity
ClaimsIdentity

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

userId
String

使用者識別碼。

conversationId
String

交談識別碼。

cancellationToken
CancellationToken

取消語彙基元。

傳回

回應的工作。

適用於