Sdílet prostřednictvím


OutputCacheProfileCollection.GetKey(Int32) Metoda

Definice

Získá klíč v zadaném OutputCacheProfileCollection indexu.

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

Index OutputCacheProfileCollection klíče.

Návraty

String

Klíč se zadaným OutputCacheProfileCollection indexem.

Příklady

Následující příklad kódu ukazuje, jak použít metodu GetKey .

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

Platí pro

Viz také