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

NotificationHubClient.DeleteRegistrationAsync 方法

定义

重载

DeleteRegistrationAsync(String, CancellationToken)

异步删除注册。

DeleteRegistrationAsync(String, String, CancellationToken)

异步删除注册。

DeleteRegistrationAsync(RegistrationDescription, CancellationToken)

异步删除注册。

DeleteRegistrationAsync(String)

异步删除注册。

DeleteRegistrationAsync(RegistrationDescription)

异步删除注册。

DeleteRegistrationAsync(String, String)

异步删除注册。

DeleteRegistrationAsync(String, CancellationToken)

异步删除注册。

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId, System.Threading.CancellationToken cancellationToken);
abstract member DeleteRegistrationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteRegistrationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteRegistrationAsync (registrationId As String, cancellationToken As CancellationToken) As Task

参数

registrationId
String

注册 ID。

cancellationToken
CancellationToken

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

返回

用于完成异步操作的任务。

实现

适用于

DeleteRegistrationAsync(String, String, CancellationToken)

异步删除注册。

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId, string etag, System.Threading.CancellationToken cancellationToken);
abstract member DeleteRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteRegistrationAsync (registrationId As String, etag As String, cancellationToken As CancellationToken) As Task

参数

registrationId
String

注册 ID。

etag
String

实体标记。

cancellationToken
CancellationToken

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

返回

用于完成异步操作的任务。

实现

例外

registrationId

适用于

DeleteRegistrationAsync(RegistrationDescription, CancellationToken)

异步删除注册。

public System.Threading.Tasks.Task DeleteRegistrationAsync (Microsoft.Azure.NotificationHubs.RegistrationDescription registration, System.Threading.CancellationToken cancellationToken);
abstract member DeleteRegistrationAsync : Microsoft.Azure.NotificationHubs.RegistrationDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteRegistrationAsync : Microsoft.Azure.NotificationHubs.RegistrationDescription * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteRegistrationAsync (registration As RegistrationDescription, cancellationToken As CancellationToken) As Task

参数

registration
RegistrationDescription

要删除的注册。

cancellationToken
CancellationToken

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

返回

用于完成异步操作的任务。

实现

例外

当注册对象为 null 时引发。

适用于

DeleteRegistrationAsync(String)

异步删除注册。

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId);
abstract member DeleteRegistrationAsync : string -> System.Threading.Tasks.Task
override this.DeleteRegistrationAsync : string -> System.Threading.Tasks.Task
Public Function DeleteRegistrationAsync (registrationId As String) As Task

参数

registrationId
String

注册 ID。

返回

用于完成异步操作的任务。

实现

适用于

DeleteRegistrationAsync(RegistrationDescription)

异步删除注册。

public System.Threading.Tasks.Task DeleteRegistrationAsync (Microsoft.Azure.NotificationHubs.RegistrationDescription registration);
abstract member DeleteRegistrationAsync : Microsoft.Azure.NotificationHubs.RegistrationDescription -> System.Threading.Tasks.Task
override this.DeleteRegistrationAsync : Microsoft.Azure.NotificationHubs.RegistrationDescription -> System.Threading.Tasks.Task
Public Function DeleteRegistrationAsync (registration As RegistrationDescription) As Task

参数

registration
RegistrationDescription

要删除的注册。

返回

用于完成异步操作的任务。

实现

例外

当注册对象为 null 时引发。

适用于

DeleteRegistrationAsync(String, String)

异步删除注册。

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId, string etag);
abstract member DeleteRegistrationAsync : string * string -> System.Threading.Tasks.Task
override this.DeleteRegistrationAsync : string * string -> System.Threading.Tasks.Task
Public Function DeleteRegistrationAsync (registrationId As String, etag As String) As Task

参数

registrationId
String

注册 ID。

etag
String

实体标记。

返回

用于完成异步操作的任务。

实现

例外

registrationId

适用于