NotificationHubClient.CreateOrUpdateRegistrationAsync<T>(T) Method

Definition

Asynchronously creates or updates the client registration.

public System.Threading.Tasks.Task<T> CreateOrUpdateRegistrationAsync<T> (T registration) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
member 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

System.Threading.Tasks.Task<T>

The task object representing the asynchronous operation.

Exceptions

System.ArgumentNullException

Thrown when RegistrationId object is null

Applies to