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