'Declaration
Public Overloads Function BeginPeek( _ ByVal timeout As TimeSpan, _ ByVal stateObject As Object _ ) As IAsyncResult
'Usage
Dim instance As MessageQueue Dim timeout As TimeSpan Dim stateObject As Object Dim value As IAsyncResult value = instance.BeginPeek(timeout, stateObject)
public IAsyncResult BeginPeek( TimeSpan timeout, object stateObject )
public: IAsyncResult^ BeginPeek( TimeSpan timeout, Object^ stateObject )
Parameters
- timeout
- A System.TimeSpan that indicates the interval of time to wait for a message to become available.
- stateObject
- A state object, specified by the application, that contains information associated with the asynchronous operation.
Return Value
The System.IAsyncResult that identifies the posted asynchronous request.