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
The IPortableDeviceServiceMethodCallback interface inherits from the IUnknown interface. IPortableDeviceServiceMethodCallback also has these types of members:
The IPortableDeviceServiceMethodCallback interface has these methods.
|IPortableDeviceServiceMethodCallback::OnComplete||Indicates that a callback method has completed execution.|
|Minimum supported client||Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||None supported|