Language

WebPubSubChatServiceClient.UpdateMessageAsync Method

Definition

Overloads

Name Description
UpdateMessageAsync(String, String, RequestContent, MatchConditions, RequestContext)

[Protocol Method] Update a message.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UpdateMessageAsync(String, String, WebPubSubChatMessage, MatchConditions, CancellationToken)

Updates a message.

UpdateMessageAsync(String, String, RequestContent, MatchConditions, RequestContext)

Source:
WebPubSubChatServiceClient.cs

[Protocol Method] Update a message.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateMessageAsync(string conversationId, string messageId, Azure.Core.RequestContent content, Azure.MatchConditions matchConditions = default, Azure.RequestContext context = default);
abstract member UpdateMessageAsync : string * string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.UpdateMessageAsync : string * string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UpdateMessageAsync (conversationId As String, messageId As String, content As RequestContent, Optional matchConditions As MatchConditions = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

conversationId
String

Conversation identifier.

messageId
String

Message identifier.

content
RequestContent

The content to send as the body of the request.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

conversationId, messageId or content is null.

conversationId or messageId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

UpdateMessageAsync(String, String, WebPubSubChatMessage, MatchConditions, CancellationToken)

Source:
WebPubSubChatServiceClient.cs

Updates a message.

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

Parameters

conversationId
String

Conversation identifier.

messageId
String

Message identifier.

message
WebPubSubChatMessage

The message content and creator.

matchConditions
MatchConditions

Conditions for the request.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

The updated message.

Exceptions

conversationId, messageId or message is null.

conversationId or messageId is an empty string.

Service returned a non-success status code.

Applies to