OutputCacheProfileCollection.GetKey(Int32) Metod

Definition

Hämtar nyckeln vid det angivna OutputCacheProfileCollection indexet.

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

Parametrar

index
Int32

Indexet OutputCacheProfileCollection för nyckeln.

Returer

Nyckeln med det angivna OutputCacheProfileCollection indexet.

Exempel

I följande kodexempel visas hur metoden GetKey används.

// 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)

Gäller för

Se även