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