Modifier

Partager via


SqlCacheDependencyDatabaseCollection.Get Method

Definition

Returns the specified SqlCacheDependencyDatabaseCollection element.

Overloads

Get(Int32)

Returns the SqlCacheDependencyDatabaseCollection element at the specified index.

Get(String)

Returns the SqlCacheDependencyDatabaseCollection element with the specified name.

Get(Int32)

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

Get(String)

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