ConnectionStringSettings Class

Represents a named database connection string.

Syntax

class ConnectionStringSettings : CollectionElement  

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the ConnectionStringSettings class.

Name Description
ConnectionString A required read/write string value that specifies a database connection string. Note: The value can be an empty string (""). IIS does not verify the validity of the connection string.
Name A required unique read/write string value that specifies the name of the database connection string. This key attribute overrides any inherited value with the same name. The key property.
ProviderName An optional read/write string value that specifies the name of the ADO.NET provider to use to access a data store. The default is "System.Data.SqlClient".

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the ConnectionStrings property of the ConnectionStringsSection class.

Inheritance Hierarchy

CollectionElement

ConnectionStringSettings

Requirements

Type Description
Client - IIS 7.0 on Windows Vista
- IIS 7.5 on Windows 7
- IIS 8.0 on Windows 8
- IIS 10.0 on Windows 10
Server - IIS 7.0 on Windows Server 2008
- IIS 7.5 on Windows Server 2008 R2
- IIS 8.0 on Windows Server 2012
- IIS 8.5 on Windows Server 2012 R2
- IIS 10.0 on Windows Server 2016
Product - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF file WebAdministration.mof

See Also

CollectionElement Class