IUIAutomationPatternInstance 介面 (uiautomationcore.h)

表示控制件模式物件。 用戶端 API 包裝函式會使用此介面來實作 GetPropertyCallMethod 方法的所有屬性和方法呼叫。

繼承

IUIAutomationPatternInstance 介面繼承自 IUnknown 介面。 IUIAutomationPatternInstance 也有下列類型的成員:

方法

IUIAutomationPatternInstance 介面具有這些方法。

 
IUIAutomationPatternInstance::CallMethod

用戶端包裝函式會藉由呼叫這個 CallMethod 函式來實作方法,並將參數指定為指標陣列。
IUIAutomationPatternInstance::GetProperty

用戶端包裝函式物件會呼叫此函式,依索引指定屬性,以實作 IUIAutomation::get_CurrentX 和 IUIAutomationElement::get_CachedX方法。

備註

此介面是由 Microsoft 使用者介面自動化 實作,並由 GetCurrentPattern 之類的方法傳回。 介面會傳遞至 CreateClientWrapper,用來呼叫適當的方法和屬性 getter。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista SP2 和 Windows Vista 平臺更新、Windows XP SP3 和適用於 Windows Vista 的平臺更新 [桌面應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [桌面應用程式 |UWP 應用程式]
目標平台 Windows
標頭 uiautomationcore.h (包含 UIAutomation.h)

另請參閱

用戶端的控制項模式介面