AutomationPeer.ProviderFromPeer(AutomationPeer) 方法

定义

获取指定的 IRawElementProviderSimpleAutomationPeer

protected public:
 System::Windows::Automation::Provider::IRawElementProviderSimple ^ ProviderFromPeer(System::Windows::Automation::Peers::AutomationPeer ^ peer);
protected internal System.Windows.Automation.Provider.IRawElementProviderSimple ProviderFromPeer (System.Windows.Automation.Peers.AutomationPeer peer);
member this.ProviderFromPeer : System.Windows.Automation.Peers.AutomationPeer -> System.Windows.Automation.Provider.IRawElementProviderSimple
Protected Friend Function ProviderFromPeer (peer As AutomationPeer) As IRawElementProviderSimple

参数

peer
AutomationPeer

自动化同级。

返回

IRawElementProviderSimple

代理。

适用于

另请参阅