Udostępnij za pośrednictwem


NotificationHubClient.CreateOrUpdateRegistrationAsync Method

Definition

Overloads

CreateOrUpdateRegistrationAsync<T>(T)

Asynchronously creates or updates the client registration.

CreateOrUpdateRegistrationAsync<T>(T, CancellationToken)

Asynchronously creates or updates the client registration.

CreateOrUpdateRegistrationAsync<T>(T)

Asynchronously creates or updates the client registration.

public System.Threading.Tasks.Task<T> CreateOrUpdateRegistrationAsync<T> (T registration) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member CreateOrUpdateRegistrationAsync : 'T -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override this.CreateOrUpdateRegistrationAsync : 'T -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
Public Function CreateOrUpdateRegistrationAsync(Of T As RegistrationDescription) (registration As T) As Task(Of T)

Type Parameters

T

The type of registration.

Parameters

registration
T

The registration to be created or updated.

Returns

Task<T>

The task object representing the asynchronous operation.

Implements

Exceptions

Thrown when RegistrationId object is null

Applies to

CreateOrUpdateRegistrationAsync<T>(T, CancellationToken)

Asynchronously creates or updates the client registration.

public System.Threading.Tasks.Task<T> CreateOrUpdateRegistrationAsync<T> (T registration, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member CreateOrUpdateRegistrationAsync : 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override this.CreateOrUpdateRegistrationAsync : 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
Public Function CreateOrUpdateRegistrationAsync(Of T As RegistrationDescription) (registration As T, cancellationToken As CancellationToken) As Task(Of T)

Type Parameters

T

The type of registration.

Parameters

registration
T

The registration to be created or updated.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

Task<T>

The task object representing the asynchronous operation.

Implements

Exceptions

Thrown when RegistrationId object is null

Applies to