ISessionStateItemCollection.Keys Proprietà

Definizione

Ottiene un insieme dei nomi delle variabili per tutti i valori archiviati nell'insieme.

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

Valore della proprietà

NameObjectCollectionBase.KeysCollection

L'oggetto NameObjectCollectionBase.KeysCollection che contiene tutte le chiavi dell'insieme.

Esempio

Nell'esempio Keys di codice seguente viene illustrata un'implementazione della proprietà che usa un SortedList oggetto per archiviare i nomi e i valori delle variabili di sessione. Per un esempio di implementazione completa dell'interfaccia ISessionStateItemCollection , vedere l'esempio fornito nella panoramica dell'interfaccia ISessionStateItemCollection .

public NameObjectCollectionBase.KeysCollection Keys
{
  get { return (NameObjectCollectionBase.KeysCollection)pItems.Keys; }
}
Public ReadOnly Property Keys As NameObjectCollectionBase.KeysCollection _
  Implements ISessionStateItemCollection.Keys
  Get
    Return CType(pItems.Keys, NameObjectCollectionBase.KeysCollection)
  End Get
End Property

Si applica a

Vedi anche