Share via


NotificationHubClient.GetRegistrationAsync Method

Definition

Overloads

GetRegistrationAsync<TRegistrationDescription>(String)

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

GetRegistrationAsync<TRegistrationDescription>(String, CancellationToken)

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

GetRegistrationAsync<TRegistrationDescription>(String)

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;
abstract member GetRegistrationAsync : string -> System.Threading.Tasks.Task<'RegistrationDescription (requires 'RegistrationDescription :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'RegistrationDescription :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override 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.

Implements

Exceptions

Thrown when registrationId is null

Applies to

GetRegistrationAsync<TRegistrationDescription>(String, CancellationToken)

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, System.Threading.CancellationToken cancellationToken) where TRegistrationDescription : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member GetRegistrationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'RegistrationDescription (requires 'RegistrationDescription :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'RegistrationDescription :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override this.GetRegistrationAsync : string * System.Threading.CancellationToken -> 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, cancellationToken As CancellationToken) As Task(Of TRegistrationDescription)

Type Parameters

TRegistrationDescription

The type of registration description.

Parameters

registrationId
String

The registration ID.

cancellationToken
CancellationToken

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

Returns

Task<TRegistrationDescription>

The task that completes the asynchronous operation.

Implements

Exceptions

Thrown when registrationId is null

Applies to