OutputCacheProfileCollection.GetKey(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定 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)