RoutingRulesSection Class |
Namespace: SMTPRouter.Windows.Configuration
The RoutingRulesSection type exposes the following members.
| Name | Description | |
|---|---|---|
| RoutingRulesSection |
Initializes a new instance of the ConfigurationSection |
| Name | Description | |
|---|---|---|
| CurrentConfiguration | Gets a reference to the top-level Configuration instance that represents the configuration hierarchy that the current ConfigurationElement instance belongs to. (Inherited from ConfigurationElement.) | |
| ElementInformation | Gets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object. (Inherited from ConfigurationElement.) | |
| LockAllAttributesExcept | Gets the collection of locked attributes. (Inherited from ConfigurationElement.) | |
| LockAllElementsExcept | Gets the collection of locked elements. (Inherited from ConfigurationElement.) | |
| LockAttributes | Gets the collection of locked attributes (Inherited from ConfigurationElement.) | |
| LockElements | Gets the collection of locked elements. (Inherited from ConfigurationElement.) | |
| LockItem | Gets or sets a value indicating whether the element is locked. (Inherited from ConfigurationElement.) | |
| RoutingRules |
A collection of routing rules to be set in the configuration file
| |
| SectionInformation | Gets a SectionInformation object that contains the non-customizable information and functionality of the ConfigurationSection object. (Inherited from ConfigurationSection.) |
| Name | Description | |
|---|---|---|
| Equals | Compares the current ConfigurationElement instance to the specified object. (Inherited from ConfigurationElement.) | |
| GetHashCode | Gets a unique value representing the current ConfigurationElement instance. (Inherited from ConfigurationElement.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsReadOnly | Gets a value indicating whether the ConfigurationElement object is read-only. (Inherited from ConfigurationElement.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
<RoutingRulesConfiguration>
<RoutingRules>
<add executionSequence="10"
type="SMTPRouter.Models.MailFromDomainRoutingRule, SMTPRouter"
params="Domain=gmail.com"
smtpkey="gmail" />
<add executionSequence="20"
type="SMTPRouter.Models.MailFromDomainRoutingRule, SMTPRouter"
params="Domain=hotmail.com;"
smtpkey="hotmail" />
<add executionSequence="30"
type="SMTPRouter.Models.MailFromRegexMatchRoutingRule, SMTPRouter"
params="RegexExpression=\A[Uu](\d{5})\z"
smtpkey="hotmail" />
</RoutingRules>