Language

WebPubSubChatServiceClient.CreateOrReplaceRoomMemberAsync Method

Definition

Overloads

Name Description
CreateOrReplaceRoomMemberAsync(String, String, WebPubSubChatRoomMember, MatchConditions, CancellationToken)

Create or replace a room member.

CreateOrReplaceRoomMemberAsync(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.

CreateOrReplaceRoomMemberAsync(String, String, WebPubSubChatRoomMember, MatchConditions, CancellationToken)

Source:
WebPubSubChatServiceClient.cs

Create or replace a room member.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoomMember>> CreateOrReplaceRoomMemberAsync(string roomId, string userId, Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoomMember resource, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrReplaceRoomMemberAsync : string * string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoomMember * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoomMember>>
override this.CreateOrReplaceRoomMemberAsync : string * string * Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoomMember * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoomMember>>
Public Overridable Function CreateOrReplaceRoomMemberAsync (roomId As String, userId As String, resource As WebPubSubChatRoomMember, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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

CreateOrReplaceRoomMemberAsync(String, String, RequestContent, MatchConditions, RequestContext)

Source:
WebPubSubChatServiceClient.cs

[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 System.Threading.Tasks.Task<Azure.Response> CreateOrReplaceRoomMemberAsync(string roomId, string userId, Azure.Core.RequestContent content, Azure.MatchConditions matchConditions = default, Azure.RequestContext context = default);
abstract member CreateOrReplaceRoomMemberAsync : string * string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateOrReplaceRoomMemberAsync : string * string * Azure.Core.RequestContent * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateOrReplaceRoomMemberAsync (roomId As String, userId As String, content As RequestContent, Optional matchConditions As MatchConditions = Nothing, Optional context As RequestContext = Nothing) As Task(Of 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.

Applies to