Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PeekCompletedEventArgs::AsyncResult Property

 

Gets or sets the result of the asynchronous operation requested.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public:
property IAsyncResult^ AsyncResult {
	IAsyncResult^ get();
	void set(IAsyncResult^ value);
}

Property Value

Type: System::IAsyncResult^

A IAsyncResult that contains the data associated with the peek operation.

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 EndPeek to access the message associated with the completed operation.

When you call BeginPeek, 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. BeginPeek creates the object, which is modified throughout the operation until EndPeek completes it.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft