NotificationHubClient.GetRegistrationAsync<TRegistrationDescription>(String) 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.
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
- System.String
The registration ID.
Returns
- System.Threading.Tasks.Task<TRegistrationDescription>
The task that completes the asynchronous operation.
Exceptions
System.ArgumentNullException
Thrown when registrationId is null