HttpSessionState.Item Property (String)

 

Gets or sets a session value by name.

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

public object this[
	string name
] { get; set; }

Parameters

name
Type: System.String

The key name of the session value.

Property Value

Type: System.Object

The session-state value with the specified name, or null if the item does not exist.

.NET Framework
Available since 1.1
Return to top
Show: