語言

OutputCacheProfileCollection.GetKey(Int32) 方法

定義

在指定的 OutputCacheProfileCollection 索引處取得金鑰。

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

參數

index
Int32

OutputCacheProfileCollection鑰匙的索引。

傳回

就是那個有指定 OutputCacheProfileCollection 索引的金鑰。

範例

下列程式代碼範例示範如何使用 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)

適用於

另請參閱