語言

AutomationElement.FromLocalProvider(IRawElementProviderSimple) 方法

定義

從本地AutomationElement實作中擷取新IRawElementProviderSimple物件。

public:
 static System::Windows::Automation::AutomationElement ^ FromLocalProvider(System::Windows::Automation::Provider::IRawElementProviderSimple ^ localImpl);
public static System.Windows.Automation.AutomationElement FromLocalProvider(System.Windows.Automation.Provider.IRawElementProviderSimple localImpl);
static member FromLocalProvider : System.Windows.Automation.Provider.IRawElementProviderSimple -> System.Windows.Automation.AutomationElement
Public Shared Function FromLocalProvider (localImpl As IRawElementProviderSimple) As AutomationElement

參數

localImpl
IRawElementProviderSimple

提供者物件。

傳回

一個 AutomationElement 代表提供者物件所服務的元素。

備註

此方法可能被客戶端輔助函式庫用來讓呼叫者存取其原生元素類型。 例如,WPF 內部使用此方法,能回傳 AutomationElement,給想直接從 UIElement 取得 使用者介面自動化 元素的客戶端。

適用於

另請參閱