OutputCacheProfileCollection.GetKey Method (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the key at the specified OutputCacheProfileCollection index.

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

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