nameMatch

Parent Previous Next

nameMatch


The nameMatch attribute is used to implicitly match all objects within the Structure Map to a regular expression based on the object's name. If both nameMatch and typeMatch are included within the Rule, then both nameMatch and typeMatch must match for the rule to be applied.


Syntax

This rule will implicitly map all objects with an object name that matches the regular expression string "Credentials$" to the template mapped to the key "SqlCredentialsCollection":



<Rule templateKey="SqlCredentialsCollection" nameMatch="Credentials$" />



This rule will implicitly map all objects with an object name that matches the regular expression string "Credentials$" and an object type that matches the regular expression string "Smo\.CredentialsCollection$" to the template mapped to the key "SqlCredentialsCollection":



<Rule templateKey="SqlCredentialsCollection" nameMatch="Credentials" typeMatch="Smo\.CredentialsCollection$" />



Associated Optional Nodes

Rule - Used to specify a single rule for implicitly associating objects of a specific name and/or type with a specific templateKey.