OutputCacheProfileCollection.GetKey(Int32) Methode

Definitie

Hiermee haalt u de sleutel op de opgegeven OutputCacheProfileCollection index op.

public:
 System::String ^ GetKey(int index);
public string GetKey(int index);
member this.GetKey : int -> string
Public Function GetKey (index As Integer) As String

Parameters

index
Int32

De OutputCacheProfileCollection index van de sleutel.

Retouren

De sleutel met de opgegeven OutputCacheProfileCollection index.

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de GetKey methode gebruikt.

// Get the key with the specified index.
string theKey = outputCacheProfiles.GetKey(0).ToString();
' Get the key with the specified index.
  Dim theKey As String = _
  outputCacheProfiles.GetKey(0)

Van toepassing op

Zie ook