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 string GetKey(
	int index
)

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.

string thisKey = sqlCdds.GetKey(0).ToString();

.NET Framework
Available since 2.0
Return to top
Show: