Udostępnij za pośrednictwem


NotificationHubClient.GetRegistrationsByChannelAsync Method

Definition

Overloads

GetRegistrationsByChannelAsync(String, Int32)

Asynchronously gets the registrations by channel.

GetRegistrationsByChannelAsync(String, Int32, CancellationToken)

Asynchronously gets the registrations by channel.

GetRegistrationsByChannelAsync(String, String, Int32)

Asynchronously gets the registrations by channel.

GetRegistrationsByChannelAsync(String, String, Int32, CancellationToken)

Asynchronously gets the registrations by channel.

GetRegistrationsByChannelAsync(String, Int32)

Asynchronously gets the registrations by channel.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>> GetRegistrationsByChannelAsync (string pnsHandle, int top);
abstract member GetRegistrationsByChannelAsync : string * int -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
override this.GetRegistrationsByChannelAsync : string * int -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
Public Function GetRegistrationsByChannelAsync (pnsHandle As String, top As Integer) As Task(Of CollectionQueryResult(Of RegistrationDescription))

Parameters

pnsHandle
String

The PNS handle.

top
Int32

The location of the registration.

Returns

The task that completes the asynchronous operation, which will contain a null or empty continuation token when there is no additional data available in the query.

Implements

Applies to

GetRegistrationsByChannelAsync(String, Int32, CancellationToken)

Asynchronously gets the registrations by channel.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>> GetRegistrationsByChannelAsync (string pnsHandle, int top, System.Threading.CancellationToken cancellationToken);
abstract member GetRegistrationsByChannelAsync : string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
override this.GetRegistrationsByChannelAsync : string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
Public Function GetRegistrationsByChannelAsync (pnsHandle As String, top As Integer, cancellationToken As CancellationToken) As Task(Of CollectionQueryResult(Of RegistrationDescription))

Parameters

pnsHandle
String

The PNS handle.

top
Int32

The location of the registration.

cancellationToken
CancellationToken

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

Returns

The task that completes the asynchronous operation, which will contain a null or empty continuation token when there is no additional data available in the query.

Implements

Applies to

GetRegistrationsByChannelAsync(String, String, Int32)

Asynchronously gets the registrations by channel.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>> GetRegistrationsByChannelAsync (string pnsHandle, string continuationToken, int top);
abstract member GetRegistrationsByChannelAsync : string * string * int -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
override this.GetRegistrationsByChannelAsync : string * string * int -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
Public Function GetRegistrationsByChannelAsync (pnsHandle As String, continuationToken As String, top As Integer) As Task(Of CollectionQueryResult(Of RegistrationDescription))

Parameters

pnsHandle
String

The PNS handle.

continuationToken
String

The continuation token.

top
Int32

The location of the registration.

Returns

The task that completes the asynchronous operation, which will contain a null or empty continuation token when there is no additional data available in the query.

Implements

Exceptions

Applies to

GetRegistrationsByChannelAsync(String, String, Int32, CancellationToken)

Asynchronously gets the registrations by channel.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>> GetRegistrationsByChannelAsync (string pnsHandle, string continuationToken, int top, System.Threading.CancellationToken cancellationToken);
abstract member GetRegistrationsByChannelAsync : string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
override this.GetRegistrationsByChannelAsync : string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.CollectionQueryResult<Microsoft.Azure.NotificationHubs.RegistrationDescription>>
Public Function GetRegistrationsByChannelAsync (pnsHandle As String, continuationToken As String, top As Integer, cancellationToken As CancellationToken) As Task(Of CollectionQueryResult(Of RegistrationDescription))

Parameters

pnsHandle
String

The PNS handle.

continuationToken
String

The continuation token.

top
Int32

The location of the registration.

cancellationToken
CancellationToken

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

Returns

The task that completes the asynchronous operation, which will contain a null or empty continuation token when there is no additional data available in the query.

Implements

Exceptions

Applies to