IHttpSessionState.Keys 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取存储在会话状态项集合中的所有值的键的集合。
public:
 property System::Collections::Specialized::NameObjectCollectionBase::KeysCollection ^ Keys { System::Collections::Specialized::NameObjectCollectionBase::KeysCollection ^ get(); };public System.Collections.Specialized.NameObjectCollectionBase.KeysCollection Keys { get; }member this.Keys : System.Collections.Specialized.NameObjectCollectionBase.KeysCollectionPublic ReadOnly Property Keys As NameObjectCollectionBase.KeysCollection属性值
包含所有会话项键的 NameObjectCollectionBase.KeysCollection。
示例
下面的代码示例实现 Keys 接口的 IHttpSessionState 属性,以从内部会话状态项集合返回会话状态项键名称的集合。
public NameObjectCollectionBase.KeysCollection Keys
{
  get { return pSessionItems.Keys; }
}
Public ReadOnly Property Keys As NameObjectCollectionBase.KeysCollection _
  Implements IHttpSessionState.Keys
  Get
    Return pSessionItems.Keys
  End Get
End Property