IPortableDeviceServiceCapabilities::GetMethodAttributes method (portabledeviceapi.h)

The GetMethodAttributes method retrieves the attributes used to describe a given method.

Syntax

HRESULT GetMethodAttributes(
  [in]  REFGUID               Method,
  [out] IPortableDeviceValues **ppAttributes
);

Parameters

[in] Method

The method whose attributes are retrieved.

[out] ppAttributes

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_METHOD_ATTRIBUTE_NAME, WPD_METHOD_ATTRIBUTE_ASSOCIATED_FORMAT, WPD_METHOD_ATTRIBUTE_ACCESS, and WPD_METHOD_ATTRIBUTE_PARAMETERS properties.

Examples

For an example of how to use this method, see Retrieving Supported Service Methods.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header portabledeviceapi.h

See also

Device Interface GUIDs

IPortableDeviceServiceCapabilities Interface

Method, Format, and Parameter Attributes

Retrieving Supported Service Methods