Share via


ChatThreadClient.UpdateMessageAsync Method

Definition

Overloads

UpdateMessageAsync(UpdateChatMessageOptions, CancellationToken)

Updates a message asynchronously.

UpdateMessageAsync(String, String, CancellationToken)

Updates a message asynchronously.

UpdateMessageAsync(UpdateChatMessageOptions, CancellationToken)

Source:
ChatThreadClient.cs
Source:
ChatThreadClient.cs

Updates a message asynchronously.

public virtual System.Threading.Tasks.Task<Azure.Response> UpdateMessageAsync (Azure.Communication.Chat.UpdateChatMessageOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateMessageAsync : Azure.Communication.Chat.UpdateChatMessageOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.UpdateMessageAsync : Azure.Communication.Chat.UpdateChatMessageOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UpdateMessageAsync (options As UpdateChatMessageOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

options
UpdateChatMessageOptions

Options for the message.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

Applies to

UpdateMessageAsync(String, String, CancellationToken)

Source:
ChatThreadClient.cs
Source:
ChatThreadClient.cs

Updates a message asynchronously.

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

Parameters

messageId
String

The message id.

content
String

Chat message content.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

Applies to