OutputCacheProfileCollection.GetKey Method (Int32)

 

Gets the key at the specified OutputCacheProfileCollection index.

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 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.
  Dim theKey As String = _
  outputCacheProfiles.GetKey(0)

.NET Framework
Available since 2.0
Return to top
Show: