AutomationProperties.AddPattern(PatternInterface, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为此自动化帮助器添加新的模式实现。
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个处理程序。