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( _ ByVal correlationId As String, _ ByVal timeout As TimeSpan _ ) As Message [C#] public virtual Message PeekByCorrelationId( string correlationId, TimeSpan timeout ); [C++] public: virtual Message* PeekByCorrelationId( String* correlationId, TimeSpan timeout ); [JScript] public function PeekByCorrelationId( correlationId : String, timeout : TimeSpan ) : Message;
The message with the matching correlation ID.
MessageQueue Class | MessageQueue Members | System.Messaging Namespace | MessageQueue.PeekByCorrelationId Overload List