您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessageSession.OnBeginPeek(TrackingContext, Int64, Int32, TimeSpan, AsyncCallback, Object) Method

Definition

Executes upon calling the OnPeek or BeginPeek operation.

protected override IAsyncResult OnBeginPeek (Microsoft.ServiceBus.Tracing.TrackingContext trackingContext, long fromSequenceNumber, int messageCount, TimeSpan timeout, AsyncCallback callback, object state);
Parameters
trackingContext
TrackingContext

The context information associated by a transaction tracking this operation.

fromSequenceNumber
Int64

The sequence number to peek from the session.

messageCount
Int32

The number of message in the operation.

timeout
TimeSpan

The time span interval the operation waits before it times out.

callback
AsyncCallback

An AsyncCallback delegate that references the method to invoke when the operation is complete.

state
Object

A user-defined object that contains state information about the asynchronous operation.

Returns

AnIAsyncResult that references the asynchronous operation to peek a communication of the message session.

Applies to