SearchControlAutomationPeer.GetPattern(PatternInterface) 方法

定义

在派生类中重写时,获取与指定的 PatternInterface 关联的控件模式。

public:
 override System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface);
public override object GetPattern (System.Windows.Automation.Peers.PatternInterface patternInterface);
override this.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public Overrides Function GetPattern (patternInterface As PatternInterface) As Object

参数

patternInterface
PatternInterface

要为其获取模式的接口。

返回

Object

返回实现模式接口的对象;如果此对等方不支持接口,则为 null 引用。 Object

适用于