This documentation is archived and is not being maintained.

ReceiveCompletedEventArgs.AsyncResult Property

Gets or sets the result of the asynchronous operation requested.

[Visual Basic]
Public Property AsyncResult As IAsyncResult
[C#]
public IAsyncResult AsyncResult {get; set;}
[C++]
public: __property IAsyncResult* get_AsyncResult();
public: __property void set_AsyncResult(IAsyncResult*);
[JScript]
public function get AsyncResult() : IAsyncResult;
public function set AsyncResult(IAsyncResult);

Property Value

An IAsyncResult that contains the data associated with the receive operation.

Remarks

AsyncResult identifies ongoing or completed asynchronous operations. The property contains data that helps determine which of several potential asynchronous operations to complete, and when passed to the event handler, enables EndReceive to access the message associated with the completed operation.

When you call BeginReceive, an IAsyncResult is returned immediately, even though a message, if one exists, has not yet been retrieved because the operation is not completed. The AsyncResult indicates the state of the asynchronous operation. BeginReceive creates the object, which is modified throughout the operation until EndReceive completes it.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ReceiveCompletedEventArgs Class | ReceiveCompletedEventArgs Members | System.Messaging Namespace | BeginReceive | EndReceive | IAsyncResult

Show: