OutputCacheProfileCollection.GetKey(Int32) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera klucz w określonym OutputCacheProfileCollection indeksie.
public:
System::String ^ GetKey(int index);
public string GetKey (int index);
member this.GetKey : int -> string
Public Function GetKey (index As Integer) As String
Parametry
- index
- Int32
Indeks OutputCacheProfileCollection klucza.
Zwraca
Klucz z określonym OutputCacheProfileCollection indeksem.
Przykłady
W poniższym przykładzie kodu pokazano, jak używać GetKey metody .
// 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)