OutputCacheProfileCollection.GetKey Method (Int32)

 

Gets the key at the specified OutputCacheProfileCollection index.

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

public string GetKey(
	int index
)

Parameters

index
Type: System.Int32

The OutputCacheProfileCollection index of the key.

Return Value

Type: System.String

The key with the specified OutputCacheProfileCollection index.

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

// Get the key with the specified index.
string theKey = outputCacheProfiles.GetKey(0).ToString();

.NET Framework
Available since 2.0
Return to top
Show: