'Declaration
Public Overloads Function BeginReceive( _ ByVal timeout As TimeSpan, _ ByVal cursor As Cursor, _ ByVal state As Object, _ ByVal callback As AsyncCallback _ ) As IAsyncResult
'Usage
Dim instance As MessageQueue Dim timeout As TimeSpan Dim cursor As Cursor Dim state As Object Dim callback As AsyncCallback Dim value As IAsyncResult value = instance.BeginReceive(timeout, cursor, state, callback)
public IAsyncResult BeginReceive( TimeSpan timeout, Cursor cursor, object state, AsyncCallback callback )
public: IAsyncResult^ BeginReceive( TimeSpan timeout, Cursor^ cursor, Object^ state, AsyncCallback^ callback )
Parameters
- timeout
- A System.TimeSpan that indicates the interval of time to wait for a message to become available.
- cursor
- A Cursor that maintains a specific position in the message queue.
- state
- A state object, specified by the application, that contains information associated with the asynchronous operation.
- callback
- The System.AsyncCallback that receives the notification of the asynchronous operation completion.
Return Value
The System.IAsyncResult that identifies the posted asynchronous request.