Freigeben über


OutputCacheProfileCollection.GetKey(Int32) Methode

Definition

Ruft den Schlüssel am angegebenen OutputCacheProfileCollection-Index ab.

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

Parameter

index
Int32

Der OutputCacheProfileCollection-Index des Schlüssels.

Gibt zurück

String

Der Schlüssel mit dem angegebenen OutputCacheProfileCollection-Index.

Beispiele

Im folgenden Codebeispiel wird die Verwendung der GetKey-Methode veranschaulicht.

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

Gilt für

Siehe auch