SessionReceiver.OnBeginTryReceive Method (IEnumerable<MessageReceipt>, TimeSpan, AsyncCallback, Object)
Executes the begin try receive action.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus.Messaging (in Microsoft.ServiceBus.Messaging.dll)
Syntax
'Declaration
Protected Overrides Function OnBeginTryReceive ( _
receipts As IEnumerable(Of MessageReceipt), _
timeout As TimeSpan, _
callback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim receipts As IEnumerable(Of MessageReceipt)
Dim timeout As TimeSpan
Dim callback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = Me.OnBeginTryReceive(receipts, _
timeout, callback, state)
protected override IAsyncResult OnBeginTryReceive(
IEnumerable<MessageReceipt> receipts,
TimeSpan timeout,
AsyncCallback callback,
Object state
)
protected:
virtual IAsyncResult^ OnBeginTryReceive(
IEnumerable<MessageReceipt^>^ receipts,
TimeSpan timeout,
AsyncCallback^ callback,
Object^ state
) override
abstract OnBeginTryReceive :
receipts:IEnumerable<MessageReceipt> *
timeout:TimeSpan *
callback:AsyncCallback *
state:Object -> IAsyncResult
override OnBeginTryReceive :
receipts:IEnumerable<MessageReceipt> *
timeout:TimeSpan *
callback:AsyncCallback *
state:Object -> IAsyncResult
protected override function OnBeginTryReceive(
receipts : IEnumerable<MessageReceipt>,
timeout : TimeSpan,
callback : AsyncCallback,
state : Object
) : IAsyncResult
Parameters
- receipts
Type: System.Collections.Generic.IEnumerable<MessageReceipt>
The receipts.
- timeout
Type: System.TimeSpan
The timeout.
- callback
Type: System.AsyncCallback
The callback.
- state
Type: System.Object
The state.
Return Value
Type: System.IAsyncResult
.