|
|
Sample: Field Should Have Underscore Prefix
File Details
Downloads: |
528 |
File Size: |
540.1kB |
Posted By: |
Serge B. (SubMain) |
Views: |
3238 |
Date Added: |
03/17/2008 |
|
This is complete sample custom rule implementation in VB. This rule inherits from NamingRuleBase (vs RuleBase) which automatically add another correction option in the dropdown (or the only if you don't provide any default names) - Rename to ... - this will do all of the ShowRenameDialog work for you. You don't need to write any code to get this feature. This is just one of the perks of inheriting from NamingRuleBase. Another perk of inheriting from NamingRuleBase is that, if all your correction does is Rename, you don't need to implement the actual Correct method - NamingRuleBase already has it implemented and will do the renaming automatically. Also in this example you will find sample implementation of ViolationDescription and CorrectionDescription properties.
|
|