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 取得消費者介面自動化專案的用戶端。

適用於

另請參閱