SqlCacheDependencyDatabaseCollection.Get Method (Int32)

 

Returns the SqlCacheDependencyDatabaseCollection element at the specified index.

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

Public Function Get (
	index As Integer
) As SqlCacheDependencyDatabase

Parameters

index
Type: System.Int32

The index of the SqlCacheDependencyDatabaseCollection element to retrieve.

A null reference (Nothing in Visual Basic) is returned if no element exists at the specified index.

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

Dim dbElement1 _
As SqlCacheDependencyDatabase = _
    sqlCdds.Get(0)

.NET Framework
Available since 2.0
Return to top
Show: