Conversations.GetConversationMemberWithHttpMessagesAsync 方法

定义

GetConversationMember。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ChannelAccount>> GetConversationMemberWithHttpMessagesAsync (string userId, string conversationId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetConversationMemberWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ChannelAccount>>
Public Function GetConversationMemberWithHttpMessagesAsync (userId As String, conversationId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ChannelAccount))

参数

userId
String

用户 ID。

conversationId
String

对话 ID。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

Task<Microsoft.Rest.HttpOperationResponse<ChannelAccount>>

包含响应正文和响应标头的响应对象。

例外

操作返回无效状态代码时引发。

Microsoft.Rest.SerializationException

无法反序列化响应时引发。

Microsoft.Rest.ValidationException

当输入值与预期的数据类型、范围或模式不匹配时引发。

当所需的参数为 null 时引发。

注解

按 ID 检索会话的单个成员。

此 REST API 采用 ConversationId 和 UserId,并返回会话成员的 ChannelAccount 对象。

适用于