An NDoc Documented Class Library

IMessageConsumer.Receive Method (Int64)

Returns the next message received by this message consumer within the specified timeout. A timeout of zero will never expire and cause the method to block indefinitely.

IMessage Receive(
   long timeout
);

Parameters

timeout
The timeout in milliseconds.

Return Value

The next message received by this message consumer, or null if the timeout expires or the consumer is closed while waiting.

Exceptions

Exception Type Condition
MsgException Thrown when an error occurs receiving a message.

See Also

IMessageConsumer Interface | webMethods.Msg Namespace | IMessageConsumer.Receive Overload List