SqlCacheDependencyDatabaseCollection.Add(SqlCacheDependencyDatabase) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a SqlCacheDependencyDatabase object to the collection.
public:
void Add(System::Web::Configuration::SqlCacheDependencyDatabase ^ name);
public void Add (System.Web.Configuration.SqlCacheDependencyDatabase name);
member this.Add : System.Web.Configuration.SqlCacheDependencyDatabase -> unit
Public Sub Add (name As SqlCacheDependencyDatabase)
Parameters
The name of the SqlCacheDependencyDatabase object to add to the collection.
Exceptions
The SqlCacheDependencyDatabase object already exists in the collection or the collection is read only.
Examples
The following code example shows how to use the Add method.
SqlCacheDependencyDatabase dbElement =
new SqlCacheDependencyDatabase(
"dataBase", "dataBaseElement", 500);
sqlCdds.Add(dbElement);
Dim dbElement As SqlCacheDependencyDatabase = _
New SqlCacheDependencyDatabase( _
"dataBase", "dataBaseElement", 500)
sqlCdds.Add(dbElement)
Remarks
Each SqlCacheDependencyDatabase in the collection must have a unique name.
Applies to
See also
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.