你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NotificationHubClient.UpdateRegistrationAsync 方法

定义

重载

UpdateRegistrationAsync<T>(T)

异步更新注册。

UpdateRegistrationAsync<T>(T, CancellationToken)

异步更新注册。

UpdateRegistrationAsync<T>(T)

异步更新注册。

public System.Threading.Tasks.Task<T> UpdateRegistrationAsync<T> (T registration) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member UpdateRegistrationAsync : 'T -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override this.UpdateRegistrationAsync : 'T -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
Public Function UpdateRegistrationAsync(Of T As RegistrationDescription) (registration As T) As Task(Of T)

类型参数

T

注册的类型。

参数

registration
T

要更新的注册。

返回

Task<T>

在更新结束时将完成的任务。

实现

例外

当 RegistrationId 或 ETag 对象为 null 时引发

适用于

UpdateRegistrationAsync<T>(T, CancellationToken)

异步更新注册。

public System.Threading.Tasks.Task<T> UpdateRegistrationAsync<T> (T registration, System.Threading.CancellationToken cancellationToken) where T : Microsoft.Azure.NotificationHubs.RegistrationDescription;
abstract member UpdateRegistrationAsync : 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
override this.UpdateRegistrationAsync : 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)> (requires 'T :> Microsoft.Azure.NotificationHubs.RegistrationDescription)
Public Function UpdateRegistrationAsync(Of T As RegistrationDescription) (registration As T, cancellationToken As CancellationToken) As Task(Of T)

类型参数

T

注册的类型。

参数

registration
T

要更新的注册。

cancellationToken
CancellationToken

等待任务完成期间要观察的 CancellationToken

返回

Task<T>

在更新结束时将完成的任务。

实现

例外

当 RegistrationId 或 ETag 对象为 null 时引发

适用于