共用方式為


IUIAutomation::CheckNotSupported 方法 (uiautomationclient.h)

檢查提供的 VARIANT ,以查看它是否包含不支持的識別碼。

語法

HRESULT CheckNotSupported(
  [in]  VARIANT value,
  [out] BOOL    *isNotSupported
);

參數

[in] value

類型: VARIANT

要檢查的值。

[out] isNotSupported

類型: BOOL*

如果提供的 VARIANT 包含不支援的標識符,則收到 TRUE,否則為 FALSE

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

擷取 使用者介面自動化 元素的屬性之後,請呼叫這個方法來判斷專案是否支援擷取的屬性。 CheckNotSupported 通常會在呼叫屬性擷取方法之後呼叫,例如 GetCurrentPropertyValue

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista sp2 和 Platform Update for Windows Vista、Windows XP with SP3 和 Platform Update for Windows Vista [僅限桌面應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [僅限桌面應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

IUIAutomation

IUIAutomation::ReservedNotSupportedValue