HttpSessionStateWrapper.Item Property (Int32)

 

Gets or sets a session value by using the specified index.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public override object this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

The index of the session value.

Property Value

Type: System.Object

The session-state value that is stored at the specified index.

Exception Condition
ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

.NET Framework
Available since 3.5
Return to top
Show: