NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MessageQueue.PeekByCorrelationId

[To be supplied.]

Overload List

Peeks the message that matches the given correlation ID. If there is no message with a matching correlation ID, an exception is thrown.

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

Peeks the message that matches the given correlation ID. This function will wait until a message with a matching correlation ID is available, or the given timeout expires when no more messages can be inspected.

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

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace