'Declaration
Public Overloads Function Peek( _ ByVal timeout As TimeSpan, _ ByVal cursor As Cursor, _ ByVal action As PeekAction _ ) As Message
'Usage
Dim instance As MessageQueue Dim timeout As TimeSpan Dim cursor As Cursor Dim action As PeekAction Dim value As Message value = instance.Peek(timeout, cursor, action)
Parameters
- timeout
- A System.TimeSpan that indicates the maximum time to wait for the queue to contain a message.
- cursor
- A Cursor that maintains a specific position in the message queue.
- action
- One of the PeekAction values. Indicates whether to peek at the current message in the queue, or the next message.
Return Value
A Message that represents a message in the queue.