CommunicationIdentityClient.CreateUserAsync 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 |
|---|---|
| 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)
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)
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.