共用方式為


AutomationPeer.PeerFromProvider(IRawElementProviderSimple) 方法

定義

取得指定之 AutomationPeer Proxy 的 IRawElementProviderSimple

protected:
 System::Windows::Automation::Peers::AutomationPeer ^ PeerFromProvider(System::Windows::Automation::Provider::IRawElementProviderSimple ^ provider);
protected System.Windows.Automation.Peers.AutomationPeer PeerFromProvider (System.Windows.Automation.Provider.IRawElementProviderSimple provider);
member this.PeerFromProvider : System.Windows.Automation.Provider.IRawElementProviderSimple -> System.Windows.Automation.Peers.AutomationPeer
Protected Function PeerFromProvider (provider As IRawElementProviderSimple) As AutomationPeer

參數

provider
IRawElementProviderSimple

會實作 IRawElementProviderSimple 的類別。

傳回

AutomationPeer

指定之 AutomationPeer Proxy 的 IRawElementProviderSimple

適用於

另請參閱