Returns without removing (peeks) the first message in the queue referenced by this
MessageQueue. The
Peek method is synchronous, so it blocks the current thread until a message becomes available.
'Declaration
Public Overloads Function Peek() As Message
'Usage
Dim instance As MessageQueue
Dim value As Message
value = instance.Peek()
Return Value
The
Message that represents the first message in the queue.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2