Parameters
- correlationId
- The CorrelationId of the message to receive.
- timeout
- A System.TimeSpan that indicates the time to wait until a new message is available for inspection.
Exception | Description |
---|---|
System.ArgumentNullException | The correlationId parameter is null. |
System.ArgumentException | The value specified for the timeout parameter is not valid, possibly timeout is less than System.TimeSpan.Zero or greater than InfiniteTimeout. |
MessageQueueException | The message with the specified correlationId does not exist in the queue and did not arrive before the time-out expired.-or- An error occurred when accessing a Message Queuing method. |
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