SqlCacheDependencyDatabaseCollection.Set Method (SqlCacheDependencyDatabase)

 

Resets a specified SqlCacheDependencyDatabase object that exists within the collection.

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

Public Sub Set (
	user As SqlCacheDependencyDatabase
)

Exception Condition
ConfigurationException

The OutputCacheProfileCollection is read-only or already exists.

The Set method modifies an existing SqlCacheDependencyDatabaseCollection element.

A ConfigurationException is thrown if the element already exists or is read-only.

The following code example shows how to use the Set method.

Dim dbElement2 As SqlCacheDependencyDatabase = _
New SqlCacheDependencyDatabase( _
"dataBase2", "dataBaseElement2", 500)
sqlCdds.Set(dbElement2)

.NET Framework
Available since 2.0
Return to top
Show: