IPortableDeviceServiceMethodCallback interface (portabledeviceapi.h)
The IPortableDeviceServiceMethodCallback interface contains a method that applications use to track the completion of a callback method. Applications that call service methods asynchronously may implement this interface, and supply it as a parameter to IPortableDeviceServiceMethods::InvokeAsync.
Each asynchronous method invocation uses the application-supplied callback object as its context. Therefore, an application that intends to simultaneously invoke multiple methods should avoid reusing the callback object. Instead, the application should provide a unique instance of the callback object for each call to InvokeAsync
Inheritance
The IPortableDeviceServiceMethodCallback interface inherits from the IUnknown interface. IPortableDeviceServiceMethodCallback also has these types of members:
Methods
The IPortableDeviceServiceMethodCallback interface has these methods.
IPortableDeviceServiceMethodCallback::OnComplete Indicates that a callback method has completed execution. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | portabledeviceapi.h |