0 out of 2 rated this helpful - Rate this topic

MessageQueue.Peek Method

Returns a copy of the first message in the queue without removing the message from the queue.

Name Description
MessageQueue.Peek () 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.

Supported by the .NET Compact Framework.

MessageQueue.Peek (TimeSpan) 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 or the specified time-out occurs.

Supported by the .NET Compact Framework.

MessageQueue.Peek (TimeSpan, Cursor, PeekAction) Returns without removing (peeks) the current or next message in the queue, using the specified cursor. The Peek method is synchronous, so it blocks the current thread until a message becomes available or the specified time-out occurs.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.