IPortableDeviceServiceCapabilities::GetSupportedFormats 方法 (portabledeviceapi.h)

GetSupportedFormats 方法检索服务支持的格式。

语法

HRESULT GetSupportedFormats(
  [out] IPortableDevicePropVariantCollection **ppFormats
);

parameters

[out] ppFormats

接收格式列表的 IPortableDevicePropVariantCollection 接口。

返回值

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

要求

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

请参阅

IPortableDeviceServiceCapabilities 接口

检索支持的服务格式