ConnectionStringsSection Class [IIS 7 and higher]
Specifies a collection of database connection strings for ASP.NET applications.
Syntax
class ConnectionStringsSection : ConfigurationSectionWithCollection
Methods
The following table lists the methods exposed by the ConnectionStringsSection class.
Name |
Description |
---|---|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSectionWithCollection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
Properties
The following table lists the properties exposed by the ConnectionStringsSection class.
Name |
Description |
---|---|
ConnectionStrings |
An array of ConnectionStringSettings values that contain database connection strings for ASP.NET applications and features. |
Location |
(Inherited from ConfigurationSection.) A key property. |
Path |
(Inherited from ConfigurationSection.) A key property. |
SectionInformation |
(Inherited from ConfigurationSection.) |
Subclasses
This class contains no subclasses.
Remarks
In ASP.NET 2.0, features such as Session, Membership, Personalization, and Role Manager rely on connection strings that are stored in the ConnectionStrings property. You can also use the ConnectionStrings property to store connection strings for your own applications.
Inheritance Hierarchy
ConfigurationSectionWithCollection
ConnectionStringsSection
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |