IPortableDeviceServiceCapabilities::GetFormatPropertyAttributes 方法 (portabledeviceapi.h)

GetFormatPropertyAttributes 方法會擷取格式屬性的屬性。

語法

HRESULT GetFormatPropertyAttributes(
  [in]  REFGUID               Format,
  [in]  REFPROPERTYKEY        Property,
  [out] IPortableDeviceValues **ppAttributes
);

參數

[in] Format

其屬性具有其屬性擷取的格式。

[in] Property

擷取其屬性的屬性。

[out] ppAttributes

接收屬性清單的 IPortableDeviceValues 介面。

傳回值

如果方法成功,則會傳回 S_OK。 任何其他 HRESULT 值都表示呼叫失敗。

備註

Windows 可攜式裝置 (WPD) 驅動程式通常會將指定格式的物件視為相同。 因此,許多屬性都會在該格式的所有物件上具有相同的屬性。 這個方法會擷取這類屬性。

請注意,此方法不會擷取物件實例之間不同的屬性。

規格需求

需求
最低支援的用戶端 Windows 7 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 都不支援
目標平台 Windows
標頭 portabledeviceapi.h

另請參閱

IPortableDeviceServiceCapabilities 介面