Export (0) Print
Expand All

MessageQueue.PeekById Method

Returns a copy of the message that has the specified message identifier, without removing the message from the queue.

Overload List

Peeks the message whose message identifier matches the id parameter.

[Visual Basic] Overloads Public Function PeekById(String) As Message
[C#] public Message PeekById(string);
[C++] public: Message* PeekById(String*);
[JScript] public function PeekById(String) : Message;

Peeks the message whose message identifier matches the id parameter. Waits until the message appears in the queue or a time-out occurs.

[Visual Basic] Overloads Public Function PeekById(String, TimeSpan) As Message
[C#] public Message PeekById(string, TimeSpan);
[C++] public: Message* PeekById(String*, TimeSpan);
[JScript] public function PeekById(String, TimeSpan) : Message;

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace

Show:
© 2014 Microsoft