SmtpConnectionsSection Class |
Namespace: SMTPRouter.Windows.Configuration
The SmtpConnectionsSection type exposes the following members.
| Name | Description | |
|---|---|---|
| SmtpConnectionsSection |
Initializes a new instance of the Smtp 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.) | |
| SectionInformation | Gets a SectionInformation object that contains the non-customizable information and functionality of the ConfigurationSection object. (Inherited from ConfigurationSection.) | |
| SmtpConnections |
A collection of SmtpConfigurations
|
| 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.) |
<SmtpConfiguration>
<SmtpConnections>
<add key="gmail"
description="Gmail SMTP Server"
host="smtp.gmail.com"
port="587"
requiresAuthentication="true"
user="user"
password="pwd"/>
<add key="hotmail"
description="Hotmail SMTP Server"
host="smtp.live.com"
port="587"
requiresAuthentication="true"
user="user"
password="pwd"/>
</SmtpConnections>
</SmtpConfiguration>