WebPubSubChatServiceClient.CreateOrReplaceRoom 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 |
|---|---|
| CreateOrReplaceRoom(String, RequestContent, MatchConditions, RequestContext) |
[Protocol Method] Create or replace a room with a client-specified ID.
|
| CreateOrReplaceRoom(String, WebPubSubChatRoom, MatchConditions, CancellationToken) |
Create or replace a room with a client-specified ID. |
CreateOrReplaceRoom(String, RequestContent, MatchConditions, RequestContext)
[Protocol Method] Create or replace a room with a client-specified ID.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response CreateOrReplaceRoom(string roomId, Azure.Core.RequestContent content, Azure.MatchConditions matchConditions = default, Azure.RequestContext context = default);
abstract member CreateOrReplaceRoom : string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
override this.CreateOrReplaceRoom : string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateOrReplaceRoom (roomId As String, content As RequestContent, Optional matchConditions As MatchConditions = Nothing, Optional context As RequestContext = Nothing) As Response
Parameters
- roomId
- String
Room 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
roomId or content is null.
roomId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
CreateOrReplaceRoom(String, WebPubSubChatRoom, MatchConditions, CancellationToken)
Create or replace a room with a client-specified ID.
public virtual Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom> CreateOrReplaceRoom(string roomId, Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom resource, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrReplaceRoom : string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom>
override this.CreateOrReplaceRoom : string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom>
Public Overridable Function CreateOrReplaceRoom (roomId As String, resource As WebPubSubChatRoom, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of WebPubSubChatRoom)
Parameters
- roomId
- String
Room identifier.
- resource
- WebPubSubChatRoom
The resource instance.
- matchConditions
- MatchConditions
The content to send as the request conditions of the request.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
roomId or resource is null.
roomId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.