AutomationProperties.AddPattern(PatternInterface, Object) Method

Definition

Adds a new pattern implementation for this automation helper.

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)

Parameters

patternInterface
PatternInterface

Specifies which of the predefined pattern interfaces this handler is being added.

patternHandler
Object

Specifies a handler for the pattern interface being added.

Remarks

Duplicate handlers for the same pattern interface are not allowed. Each pattern interface can have 0 or 1 handler.

Applies to