AutomationElement.FromLocalProvider(IRawElementProviderSimple) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從本地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 取得 使用者介面自動化 元素的客戶端。