SqlCacheDependencyDatabase.Name Property

 

Gets or sets the name of the database.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("name", IsRequired := True, IsKey := True)>
<StringValidatorAttribute(MinLength := 1)>
Public Property Name As String

Property Value

Type: System.String

A string that specifies the name used by SqlCacheDependencyDatabase to identify the database.

The Name property allows you to programmatically access and modify the name attribute of an add element of the databases node in a configuration file.

The name attribute identifies the database whose table is used for the SqlCacheDependency.

The following code example shows how to use the Name property.

' Get the current Name property value.
Dim nameValue As String = sqlCdd.Name

' Set the Name for this configuration element.
sqlCdd.Name = "ConfigElementName"

.NET Framework
Available since 2.0
Return to top
Show: