NotificationHubClient.GetRegistrationAsync<TRegistrationDescription>(String) Method

Definition

Asynchronously retrieves a registration with a given ID. The type of the registration depends upon the specified TRegistrationDescription parameter.

public System.Threading.Tasks.Task<TRegistrationDescription> GetRegistrationAsync<TRegistrationDescription> (string registrationId) where TRegistrationDescription : Microsoft.Azure.NotificationHubs.RegistrationDescription;
member this.GetRegistrationAsync : string -> System.Threading.Tasks.Task<'RegistrationDescription (requires 'RegistrationDescription :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'RegistrationDescription :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
Public Function GetRegistrationAsync(Of TRegistrationDescription As RegistrationDescription) (registrationId As String) As Task(Of TRegistrationDescription)

Type Parameters

TRegistrationDescription

The type of registration description.

Parameters

registrationId
String

The registration ID.

Returns

Task<TRegistrationDescription>

The task that completes the asynchronous operation.

Exceptions

Thrown when registrationId is null

Applies to