共用方式為


ChannelServiceHandlerBase.OnGetConversationMemberAsync 方法

定義

適用于技能的 GetConversationMember () API。

protected virtual System.Threading.Tasks.Task<Microsoft.Bot.Schema.ChannelAccount> OnGetConversationMemberAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, string userId, string conversationId, System.Threading.CancellationToken cancellationToken = default);
abstract member OnGetConversationMemberAsync : System.Security.Claims.ClaimsIdentity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ChannelAccount>
override this.OnGetConversationMemberAsync : System.Security.Claims.ClaimsIdentity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ChannelAccount>
Protected Overridable 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

取消語彙基元。

傳回

回應的工作。

備註

覆寫這個方法以取得單一交談成員的帳戶。

此 REST API 會採用 ConversationId 和 UserId,並傳回代表交談成員的 ChannelAccount 物件。

適用於