IPortableDeviceServiceCapabilities::GetSupportedMethods 方法 (portabledeviceapi.h)

GetSupportedMethods 方法检索服务支持的方法。

语法

HRESULT GetSupportedMethods(
  [out] IPortableDevicePropVariantCollection **ppMethods
);

参数

[out] ppMethods

接收方法列表的 IPortableDevicePropVariantCollection 接口。

返回值

如果方法成功,则返回 S_OK。 任何其他 HRESULT 值都表示调用失败。

要求

要求
最低受支持的客户端 Windows 7 [桌面应用 |UWP 应用]
最低受支持的服务器 无受支持的版本
目标平台 Windows
标头 portabledeviceapi.h

另请参阅

IPortableDeviceServiceCapabilities 接口

检索受支持的服务方法