SqlCacheDependencyDatabaseCollection.Get Method
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.
Returns the specified SqlCacheDependencyDatabaseCollection element.
Get(Int32) |
Returns the SqlCacheDependencyDatabaseCollection element at the specified index. |
Get(String) |
Returns the SqlCacheDependencyDatabaseCollection element with the specified name. |
Returns the SqlCacheDependencyDatabaseCollection element at the specified index.
public:
System::Web::Configuration::SqlCacheDependencyDatabase ^ Get(int index);
public System.Web.Configuration.SqlCacheDependencyDatabase Get(int index);
member this.Get : int -> System.Web.Configuration.SqlCacheDependencyDatabase
Public Function Get (index As Integer) As SqlCacheDependencyDatabase
Parameters
- index
- Int32
The index of the SqlCacheDependencyDatabaseCollection element to retrieve.
Returns
The SqlCacheDependencyDatabaseCollection element at the specified index.
Examples
The following code example shows how to use the Get method.
SqlCacheDependencyDatabase dbElement1 =
sqlCdds.Get(0);
Dim dbElement1 _
As SqlCacheDependencyDatabase = _
sqlCdds.Get(0)
Remarks
A null reference (Nothing
in Visual Basic) is returned if no element exists at the specified index.
See also
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Returns the SqlCacheDependencyDatabaseCollection element with the specified name.
public:
System::Web::Configuration::SqlCacheDependencyDatabase ^ Get(System::String ^ name);
public System.Web.Configuration.SqlCacheDependencyDatabase Get(string name);
member this.Get : string -> System.Web.Configuration.SqlCacheDependencyDatabase
Public Function Get (name As String) As SqlCacheDependencyDatabase
Parameters
- name
- String
The name of the SqlCacheDependencyDatabaseCollection element to retrieve.
Returns
The SqlCacheDependencyDatabaseCollection element with the specified name.
Examples
The following code example shows how to use the Get method.
SqlCacheDependencyDatabase dbElement3 =
sqlCdds.Get("dataBaseElement");
Dim dbElement3 _
As SqlCacheDependencyDatabase = _
sqlCdds.Get("dataBaseElement")
Remarks
A null reference (Nothing
in Visual Basic) is returned if no element exists with the specified name.
See also
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: