IPortableDeviceServiceCapabilities::GetEventAttributes 方法 (portabledeviceapi.h)
GetEventAttributes 方法會擷取事件的屬性。
語法
HRESULT GetEventAttributes(
[in] REFGUID Event,
[out] IPortableDeviceValues **ppAttributes
);
參數
[in] Event
擷取其屬性的事件。
[out] ppAttributes
接收屬性清單的 IPortableDeviceValues 介面。
傳回值
如果方法成功,則會傳回 S_OK。 任何其他 HRESULT 值都表示呼叫失敗。
備註
可能的屬性包括 WPD_EVENT_ATTRIBUTE_NAME、WPD_EVENT_ATTRIBUTE_PARAMETERS和WPD_EVENT_ATTRIBUTE_OPTIONS屬性。
範例
如需如何使用此方法的範例,請參閱 擷取支持的服務事件。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows 7 [傳統型應用程式 |UWP 應用程式] |
最低支援的伺服器 | 都不支援 |
目標平台 | Windows |
標頭 | portabledeviceapi.h |