WebPubSubChatServiceClient.UpdateMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| UpdateMessage(String, String, RequestContent, MatchConditions, RequestContext) |
[Protocol Method] Update a message.
|
| UpdateMessage(String, String, WebPubSubChatMessage, MatchConditions, CancellationToken) |
Updates a message. |
UpdateMessage(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.
public virtual Azure.Response UpdateMessage(string conversationId, string messageId, Azure.Core.RequestContent content, Azure.MatchConditions matchConditions = default, Azure.RequestContext context = default);
abstract member UpdateMessage : string * string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
override this.UpdateMessage : string * string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function UpdateMessage (conversationId As String, messageId As String, content As RequestContent, Optional matchConditions As MatchConditions = Nothing, Optional context As RequestContext = Nothing) As 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
UpdateMessage(String, String, WebPubSubChatMessage, MatchConditions, CancellationToken)
Updates a message.
public virtual Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage> UpdateMessage(string conversationId, string messageId, Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage message, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateMessage : string * string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage>
override this.UpdateMessage : string * string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatMessage>
Public Overridable Function UpdateMessage (conversationId As String, messageId As String, message As WebPubSubChatMessage, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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.