NotificationHubClient.CreateOrUpdateRegistrationAsync 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
CreateOrUpdateRegistrationAsync<T>(T) |
Erstellt oder aktualisiert asynchron die Clientregistrierung. |
CreateOrUpdateRegistrationAsync<T>(T, CancellationToken) |
Erstellt oder aktualisiert asynchron die Clientregistrierung. |
CreateOrUpdateRegistrationAsync<T>(T)
Erstellt oder aktualisiert asynchron die Clientregistrierung.
public System.Threading.Tasks.Task<T> CreateOrUpdateRegistrationAsync<T> (T registration) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member CreateOrUpdateRegistrationAsync : 'T -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override 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)
Typparameter
- T
Der Registrierungstyp.
Parameter
- registration
- T
Die Registrierung, die erstellt oder aktualisiert werden soll.
Gibt zurück
Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.
Implementiert
Ausnahmen
Wird ausgelöst, wenn das RegistrationId-Objekt NULL ist
Gilt für:
CreateOrUpdateRegistrationAsync<T>(T, CancellationToken)
Erstellt oder aktualisiert asynchron die Clientregistrierung.
public System.Threading.Tasks.Task<T> CreateOrUpdateRegistrationAsync<T> (T registration, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member CreateOrUpdateRegistrationAsync : 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override this.CreateOrUpdateRegistrationAsync : 'T * System.Threading.CancellationToken -> 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, cancellationToken As CancellationToken) As Task(Of T)
Typparameter
- T
Der Registrierungstyp.
Parameter
- registration
- T
Die Registrierung, die erstellt oder aktualisiert werden soll.
- cancellationToken
- CancellationToken
Ein CancellationToken, das beim Warten auf den Abschluss einer Aufgabe überwacht werden soll.
Gibt zurück
Das Aufgabenobjekt, das den asynchronen Vorgang darstellt.
Implementiert
Ausnahmen
Wird ausgelöst, wenn das RegistrationId-Objekt NULL ist
Gilt für:
Azure SDK for .NET