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.InfiniteTimeout

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;

Remarks

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.

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace | Peek | Receive | BeginPeek | BeginReceive