ReceiveCompletedEventArgs.AsyncResult Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the result of the asynchronous operation requested.
public:
property IAsyncResult ^ AsyncResult { IAsyncResult ^ get(); void set(IAsyncResult ^ value); };
public IAsyncResult AsyncResult { get; set; }
member this.AsyncResult : IAsyncResult with get, set
Public Property AsyncResult As IAsyncResult
Property Value
A 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, a 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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor