OutputCacheProfileCollection.GetKey(Int32) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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)