AutomationProperties.AddPattern(PatternInterface, Object) 方法

定义

为此自动化帮助器添加新的模式实现。

public:
 void AddPattern(System::Windows::Automation::Peers::PatternInterface patternInterface, System::Object ^ patternHandler);
public void AddPattern (System.Windows.Automation.Peers.PatternInterface patternInterface, object patternHandler);
member this.AddPattern : System.Windows.Automation.Peers.PatternInterface * obj -> unit
Public Sub AddPattern (patternInterface As PatternInterface, patternHandler As Object)

参数

patternInterface
PatternInterface

指定正在添加此处理程序的预定义模式接口。

patternHandler
Object

为正在添加的模式接口指定处理程序。

注解

不允许使用相同模式接口的重复处理程序。 每个模式接口都可以有0个或1个处理程序。

适用于