Udostępnij za pośrednictwem


OutputCacheProfileCollection.GetKey(Int32) Metoda

Definicja

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

String

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)

Dotyczy

Zobacz też