SqlCacheDependencyDatabaseCollection.GetKey Method (Int32)

 

Returns the key for the element located at the specified index in the SqlCacheDependencyDatabaseCollection.

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

Public Function GetKey (
	index As Integer
) As String

Parameters

index
Type: System.Int32

The index of the key to return.

Return Value

Type: System.String

The key at the specified index.

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 GetKey method.

Dim thisKey As String = sqlCdds.GetKey(0)

.NET Framework
Available since 2.0
Return to top
Show: