SubscriptionClient.PeekAsync SubscriptionClient.PeekAsync SubscriptionClient.PeekAsync Method

Definition

Overloads

PeekAsync() PeekAsync() PeekAsync()

Asynchronously returns without removing the first message in the queue.

PeekAsync(Int64) PeekAsync(Int64) PeekAsync(Int64)

Asynchronously returns without removing the first message in the queue.

PeekAsync() PeekAsync() PeekAsync()

Asynchronously returns without removing the first message in the queue.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> PeekAsync ();
abstract member PeekAsync : unit -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.PeekAsync : unit -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function PeekAsync () As Task(Of BrokeredMessage)
Returns

A task instance that represents the asynchronous peek operation.

PeekAsync(Int64) PeekAsync(Int64) PeekAsync(Int64)

Asynchronously returns without removing the first message in the queue.

public System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage> PeekAsync (long fromSequenceNumber);
abstract member PeekAsync : int64 -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
override this.PeekAsync : int64 -> System.Threading.Tasks.Task<Microsoft.ServiceBus.Messaging.BrokeredMessage>
Public Function PeekAsync (fromSequenceNumber As Long) As Task(Of BrokeredMessage)
Parameters
fromSequenceNumber
Int64 Int64 Int64

The starting point from which to browse a message.

Returns

A task instance that represents the asynchronous peek operation.

Applies to