NotificationHubClient.GetRegistrationAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
GetRegistrationAsync<TRegistrationDescription>(String) |
Ruft asynchron eine Registrierung mit einer angegebenen ID ab. Der Typ der Registrierung hängt vom angegebenen TRegistrationDescription-Parameter ab. |
GetRegistrationAsync<TRegistrationDescription>(String, CancellationToken) |
Ruft asynchron eine Registrierung mit einer angegebenen ID ab. Der Typ der Registrierung hängt vom angegebenen TRegistrationDescription-Parameter ab. |
GetRegistrationAsync<TRegistrationDescription>(String)
Ruft asynchron eine Registrierung mit einer angegebenen ID ab. Der Typ der Registrierung hängt vom angegebenen TRegistrationDescription-Parameter ab.
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)
Typparameter
- TRegistrationDescription
Der Typ der Registrierungsbeschreibung.
Parameter
- registrationId
- String
Die Registrierungs-ID.
Gibt zurück
Der Task, der den asynchronen Vorgang abschließt.
Implementiert
Ausnahmen
Wird ausgelöst, wenn registrationId NULL ist
Gilt für:
GetRegistrationAsync<TRegistrationDescription>(String, CancellationToken)
Ruft asynchron eine Registrierung mit einer angegebenen ID ab. Der Typ der Registrierung hängt vom angegebenen TRegistrationDescription-Parameter ab.
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)
Typparameter
- TRegistrationDescription
Der Typ der Registrierungsbeschreibung.
Parameter
- registrationId
- String
Die Registrierungs-ID.
- cancellationToken
- CancellationToken
Ein CancellationToken, das beim Warten auf den Abschluss einer Aufgabe überwacht werden soll.
Gibt zurück
Der Task, der den asynchronen Vorgang abschließt.
Implementiert
Ausnahmen
Wird ausgelöst, wenn registrationId NULL ist
Gilt für:
Azure SDK for .NET