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)

適用対象

こちらもご覧ください