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);
member this.DeleteRegistrationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.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.

DeleteRegistrationAsync(String, String, CancellationToken)

Asynchronously deletes the registration.

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId, string etag, System.Threading.CancellationToken cancellationToken);
member this.DeleteRegistrationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.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.

Exceptions

registrationId

DeleteRegistrationAsync(RegistrationDescription, CancellationToken)

Asynchronously deletes the registration.

public System.Threading.Tasks.Task DeleteRegistrationAsync (Microsoft.Azure.NotificationHubs.RegistrationDescription registration, System.Threading.CancellationToken cancellationToken);
member this.DeleteRegistrationAsync : Microsoft.Azure.NotificationHubs.RegistrationDescription * System.Threading.CancellationToken -> System.Threading.Tasks.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.

Exceptions

Thrown when registration object is null.

DeleteRegistrationAsync(String)

Asynchronously deletes the registration.

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId);
member 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.

DeleteRegistrationAsync(RegistrationDescription)

Asynchronously deletes the registration.

public System.Threading.Tasks.Task DeleteRegistrationAsync (Microsoft.Azure.NotificationHubs.RegistrationDescription registration);
member 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.

Exceptions

Thrown when registration object is null.

DeleteRegistrationAsync(String, String)

Asynchronously deletes the registration.

public System.Threading.Tasks.Task DeleteRegistrationAsync (string registrationId, string etag);
member 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.

Exceptions

registrationId

Applies to