Specifies that there is no timeout period for calls to peek or receive messages.
[Visual Basic] Public Shared InfiniteTimeout As TimeSpan [C#] public static TimeSpan InfiniteTimeout; [C++] public: static TimeSpan InfiniteTimeout; [JScript] public static var InfiniteTimeout : TimeSpan;
If the timeout value InfiniteTimeout is specified for synchronous calls to receive messages, the current thread of execution will be blocked until a new message is available. If InfiniteTimeout is specified for asynchronous calls to receive messages, the current thread of execution will not be blocked.
MessageQueue Class | MessageQueue Members | System.Messaging Namespace | Peek | Receive | BeginPeek | BeginReceive