The Custom Matching Rule configuration item allows you to configure any custom matching rule class you create. The configuration editor creates an entry in the configuration that contains the name and the class type, plus all the attributes you enter in the EditableKeyValue Collection Editor dialog box. These values are all available to the custom matching rule at run time through a NameValueCollection passed to the custom class.

Only classes that implement the IMatchingRule interface and carry the attribute [ConfigurationElementType(typeof(CustomMatchingRuleData))] will be visible in the Type Selector dialog box and available for configuration with Enterprise Library Configuration Console or Visual Studio Configuration Editor.

posted on 2008-03-20 10:57  今夜太冷  阅读(285)  评论(0)    收藏  举报