AutomationProperties.AddPattern(PatternInterface, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.