IWSDAsyncResult interface (wsdclient.h)

Represents an asynchronous operation.

Inheritance

The IWSDAsyncResult interface inherits from the IUnknown interface. IWSDAsyncResult also has these types of members:

Methods

The IWSDAsyncResult interface has these methods.

 
IWSDAsyncResult::Abort

Aborts the asynchronous operation.
IWSDAsyncResult::GetAsyncState

Gets the state of the asynchronous operation.
IWSDAsyncResult::GetEndpointProxy

Retrieves the endpoint proxy for the asynchronous operation.
IWSDAsyncResult::GetEvent

Retrieves a WSD_EVENT structure that contains the result of the event.
IWSDAsyncResult::HasCompleted

Indicates whether the operation has completed.
IWSDAsyncResult::SetCallback

Specifies a callback interface to call when the asynchronous operation has completed.
IWSDAsyncResult::SetWaitHandle

Specifies a wait handle to set when the operation completes.

Remarks

The IWSDAsyncResult interface can be used to set a wait handle to receive event or message notification or poll for operation completion. It can also retrieve the state of an asynchronous operation and retrieve the results and response body of the event.

The IWSDAsyncCallback interface can be used to provide an asynchronous calling pattern in support of WSDAPI messaging and eventing, allowing an application to receive callback notification based on the status of an operation.

A failed asynchronous operation is treated as a completed asynchronous operation. Error or fault information can be retrieved from the IWSDAsyncCallback interface using the IWSDAsyncCallback::AsyncOperationComplete method.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdclient.h (include Wsdapi.h)