INotificationHubClient.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, CancellationToken) |
Asynchronously creates or updates the client registration. |
CreateOrUpdateRegistrationAsync<T>(T) |
Asynchronously creates or updates the client registration. |
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)
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.
Exceptions
Thrown when RegistrationId object is null
Applies to
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)
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.
Exceptions
Thrown when RegistrationId object is null
Applies to
Azure SDK for .NET
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin