CloudSkillHandler.OnGetConversationMemberAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
適用于技能的 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
取消語彙基元。
傳回
回應的工作。