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

Receives the first message available in the queue.

Overload List

Receives the first message available in the queue referenced by the MessageQueue. Waits the specified interval for a new message to be removed, uses the specified object to retrieve the result, and receives notification through a callback.

[Visual Basic] Overloads Public Function BeginReceive(TimeSpan, Object, AsyncCallback) As IAsyncResult
[C#] public IAsyncResult BeginReceive(TimeSpan, Object, AsyncCallback);
[C++] public: IAsyncResult* BeginReceive(TimeSpan, Object, AsyncCallback);
[JScript] public function BeginReceive(TimeSpan, Object, AsyncCallback) : IAsyncResult;

Receives the first message available in the queue referenced by the MessageQueue. Waits the specified interval for a new message to be removed and uses the specified object to retrieve the result.

[Visual Basic] Overloads Public Function BeginReceive(TimeSpan, Object) As IAsyncResult
[C#] public IAsyncResult BeginReceive(TimeSpan, Object);
[C++] public: IAsyncResult* BeginReceive(TimeSpan, Object);
[JScript] public function BeginReceive(TimeSpan, Object) : IAsyncResult;

Receives the first message available in the queue referenced by the MessageQueue. Waits the specified interval for the message to be removed.

[Visual Basic] Overloads Public Function BeginReceive(TimeSpan) As IAsyncResult
[C#] public IAsyncResult BeginReceive(TimeSpan);
[C++] public: IAsyncResult* BeginReceive(TimeSpan);
[JScript] public function BeginReceive(TimeSpan) : IAsyncResult;

Receives the first message available in the queue referenced by the MessageQueue.

[Visual Basic] Overloads Public Function BeginReceive() As IAsyncResult
[C#] public IAsyncResult BeginReceive();
[C++] public: IAsyncResult* BeginReceive();
[JScript] public function BeginReceive() : IAsyncResult;

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace