HttpSessionState.Item[] Właściwość

Definicja

Pobiera lub ustawia wartości poszczególnych sesji.

Przeciążenia

Item[Int32]

Pobiera lub ustawia wartość sesji według indeksu liczbowego.

Item[String]

Pobiera lub ustawia wartość sesji według nazwy.

Item[Int32]

Pobiera lub ustawia wartość sesji według indeksu liczbowego.

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
public object this[int index] { get; set; }
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object

Parametry

index
Int32

Indeks liczbowy wartości sesji.

Wartość właściwości

Wartość stanu sesji przechowywana w określonym indeksie lub null jeśli element nie istnieje.

Zobacz też

Dotyczy

Item[String]

Pobiera lub ustawia wartość sesji według nazwy.

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); void set(System::String ^ name, System::Object ^ value); };
public object this[string name] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(name As String) As Object

Parametry

name
String

Nazwa klucza wartości sesji.

Wartość właściwości

Wartość stanu sesji o określonej nazwie lub null jeśli element nie istnieje.

Zobacz też

Dotyczy