Bagikan melalui


IHttpSessionState.Keys Properti

Definisi

Mendapatkan kumpulan kunci untuk semua nilai yang disimpan dalam kumpulan item status sesi.

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.KeysCollection
Public ReadOnly Property Keys As NameObjectCollectionBase.KeysCollection

Nilai Properti

NameObjectCollectionBase.KeysCollection yang berisi semua kunci item sesi.

Contoh

Contoh kode berikut mengimplementasikan Keys properti IHttpSessionState antarmuka untuk mengembalikan kumpulan nama kunci item status sesi dari kumpulan item keadaan sesi internal.

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

Berlaku untuk

Lihat juga