Sdílet prostřednictvím


Conversations.GetConversationMemberWithHttpMessagesAsync Metoda

Definice

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))

Parametry

userId
String

ID uživatele

conversationId
String

ID konverzace.

customHeaders
Dictionary<String,List<String>>

Hlavičky, které budou přidány do žádosti.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Task<Microsoft.Rest.HttpOperationResponse<ChannelAccount>>

Objekt odpovědi obsahující text odpovědi a hlavičky odpovědi.

Výjimky

Vyvolá se, když operace vrátila neplatný stavový kód.

Microsoft.Rest.SerializationException

Vyvolána, když nelze deserializovat odpověď.

Microsoft.Rest.ValidationException

Vyvolá se, když se vstupní hodnota neshoduje s očekávaným datovým typem, rozsahem nebo vzorem.

Vyvolá se, když má požadovaný parametr hodnotu null.

Poznámky

Načte jednoho člena konverzace podle ID.

Toto rozhraní REST API přebírá id konverzace a Id uživatele a vrací objekt ChannelAccount pro členy konverzace.

Platí pro