Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDeviceServiceCapabilities::GetMethodAttributes method

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

Syntax


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

Parameters

Method [in]

The method 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_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

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported

Header

PortableDeviceAPI.h

IDL

PortableDeviceAPI.idl

See also

IPortableDeviceServiceCapabilities Interface
Method, Format, and Parameter Attributes
Device Interface GUIDs
Retrieving Supported Service Methods

 

 

Community Additions

Show:
© 2017 Microsoft