Share via


ChatThreadClient.GetMessage(String, CancellationToken) Method

Definition

Gets a message by id.

public virtual Azure.Response<Azure.Communication.Chat.ChatMessage> GetMessage (string messageId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMessage : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.ChatMessage>
override this.GetMessage : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.ChatMessage>
Public Overridable Function GetMessage (messageId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ChatMessage)

Parameters

messageId
String

The message id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to