BeginReceive Method

MessageQueue.BeginReceive Method

Initiates an asynchronous receive operation by telling Message Queuing to begin receiving a message and notify the event handler when finished.

Name Description
MessageQueue.BeginReceive () Initiates an asynchronous receive operation that has no time-out. The operation is not complete until a message becomes available in the queue.

Supported by the .NET Compact Framework.

MessageQueue.BeginReceive (TimeSpan) Initiates an asynchronous receive operation that has a specified time-out. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

Supported by the .NET Compact Framework.

MessageQueue.BeginReceive (TimeSpan, Object) Initiates an asynchronous receive operation that has a specified time-out and a specified state object, which provides associated information throughout the operation's lifetime. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

Supported by the .NET Compact Framework.

MessageQueue.BeginReceive (TimeSpan, Object, AsyncCallback) Initiates an asynchronous receive operation that has a specified time-out and a specified state object, which provides associated information throughout the operation's lifetime. This overload receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

Supported by the .NET Compact Framework.

MessageQueue.BeginReceive (TimeSpan, Cursor, Object, AsyncCallback) Initiates an asynchronous receive operation that has a specified time-out and uses a specified cursor and a specified state object. The state object provides associated information throughout the lifetime of the operation. This overload receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

Community Additions

ADD
Show:
© 2016 Microsoft