Delen via


NotificationHubClient.DeleteRegistrationAsync Method

Definition

Overloads

DeleteRegistrationAsync(String, CancellationToken)

Asynchronously deletes the registration.

DeleteRegistrationAsync(String, String, CancellationToken)

Asynchronously deletes the registration.

DeleteRegistrationAsync(RegistrationDescription, CancellationToken)

Asynchronously deletes the registration.

DeleteRegistrationAsync(String)

Asynchronously deletes the registration.

DeleteRegistrationAsync(RegistrationDescription)

Asynchronously deletes the registration.

DeleteRegistrationAsync(String, String)

Asynchronously deletes the registration.

DeleteRegistrationAsync(String, CancellationToken)

Asynchronously deletes the registration.

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

Parameters

registrationId
String

The registration ID.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

The task that completes the asynchronous operation.

Implements

Applies to

DeleteRegistrationAsync(String, String, CancellationToken)

Asynchronously deletes the registration.

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

Parameters

registrationId
String

The registration ID.

etag
String

The entity tag.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

The task that completes the asynchronous operation.

Implements

Exceptions

registrationId

Applies to

DeleteRegistrationAsync(RegistrationDescription, CancellationToken)

Asynchronously deletes the registration.

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

Parameters

registration
RegistrationDescription

The registration to delete.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

The task that completes the asynchronous operation.

Implements

Exceptions

Thrown when registration object is null.

Applies to

DeleteRegistrationAsync(String)

Asynchronously deletes the registration.

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

Parameters

registrationId
String

The registration ID.

Returns

The task that completes the asynchronous operation.

Implements

Applies to

DeleteRegistrationAsync(RegistrationDescription)

Asynchronously deletes the registration.

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

Parameters

registration
RegistrationDescription

The registration to delete.

Returns

The task that completes the asynchronous operation.

Implements

Exceptions

Thrown when registration object is null.

Applies to

DeleteRegistrationAsync(String, String)

Asynchronously deletes the registration.

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

Parameters

registrationId
String

The registration ID.

etag
String

The entity tag.

Returns

The task that completes the asynchronous operation.

Implements

Exceptions

registrationId

Applies to