CommunicationIdentityClient.CreateUserAsync Method

Definition

Overloads

Name Description
CreateUserAsync(CancellationToken)

Asynchronously creates a new CommunicationUserIdentifier.

CreateUserAsync(String, CancellationToken)

Asynchronously creates a new CommunicationUserIdentifier if the to doesn't exist or get the user otherwise/>.

CreateUserAsync(CancellationToken)

Source:
CommunicationIdentityClient.cs
Source:
CommunicationIdentityClient.cs

Asynchronously creates a new CommunicationUserIdentifier.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CommunicationUserIdentifier>> CreateUserAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member CreateUserAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CommunicationUserIdentifier>>
override this.CreateUserAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CommunicationUserIdentifier>>
Public Overridable Function CreateUserAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunicationUserIdentifier))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

CreateUserAsync(String, CancellationToken)

Source:
CommunicationIdentityClient.cs

Asynchronously creates a new CommunicationUserIdentifier if the to doesn't exist or get the user otherwise/>.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CommunicationUserIdentifier>> CreateUserAsync(string customId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateUserAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CommunicationUserIdentifier>>
override this.CreateUserAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CommunicationUserIdentifier>>
Public Overridable Function CreateUserAsync (customId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommunicationUserIdentifier))

Parameters

customId
String

Custom Id to be associated with the user.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to