IPortableDeviceServiceCapabilities::GetMethodParameterAttributes method
The GetMethodParameterAttributes method retrieves the attributes used to describe a given method parameter.
Syntax
HRESULT STDMETHODCALLTYPE GetMethodParameterAttributes(
[in] REFPROPERTYKEY Parameter,
[out] IPortableDeviceValues **ppAttributes
);
Parameters
- Parameter [in]
-
The parameter whose attributes are retrieved.
- ppAttributes [out]
-
The IPortableDeviceValues interface that receives the list of attributes.
Return value
If the method succeeds, it returns S_OK. Any other HRESULT value indicates that the call failed.
Remarks
Possible attributes include the WPD_PARAMETER_ATTRIBUTE_ORDER, WPD_PARAMETER_ATTRIBUTE_USAGE, WPD_PARAMETER_ATTRIBUTE_NAME, and WPD_PARAMETER_ATTRIBUTE_VARTYPE properties.
Examples
For an example of how to use this method, see Retrieving Supported Service Methods.
Requirements
|
Minimum supported client | Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | None supported |
|
Header |
|
|
IDL |
|
See also