NotificationHubClient.CreateOrUpdateRegistrationAsync 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.
Overloads
CreateOrUpdateRegistrationAsync<T>(T) |
Asynchronously creates or updates the client registration. |
CreateOrUpdateRegistrationAsync<T>(T, CancellationToken) |
Asynchronously creates or updates the client registration. |
CreateOrUpdateRegistrationAsync<T>(T)
Asynchronously creates or updates the client registration.
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)
Type Parameters
- T
The type of registration.
Parameters
- registration
- T
The registration to be created or updated.
Returns
The task object representing the asynchronous operation.
Implements
Exceptions
Thrown when RegistrationId object is null
Applies to
CreateOrUpdateRegistrationAsync<T>(T, CancellationToken)
Asynchronously creates or updates the client registration.
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)
Type Parameters
- T
The type of registration.
Parameters
- registration
- T
The registration to be created or updated.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
The task object representing the asynchronous operation.
Implements
Exceptions
Thrown when RegistrationId object is null
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per