SqlCacheDependencyDatabase.ConnectionStringName Property
.NET Framework (current version)
Gets or sets the connection name for the database.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("connectionStringName", IsRequired := True)> <StringValidatorAttribute(MinLength := 1)> Public Property ConnectionStringName As String
Property Value
Type: System.StringA string that specifies the name of a database connection string within the connectionStrings configuration section.
The ConnectionStringName property allows you to programmatically access and modify the connectionName attribute of an add element of the databases node in a configuration file. The connection name identifies an element in the connectionStrings section which contains the database connection string.
The following code example shows how to use the ConnectionStringName property.
.NET Framework
Available since 2.0
Available since 2.0
Show: