HttpSessionStateWrapper.Item Property (String)


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

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

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


Type: System.String

The key name of the session value.

Property Value

Type: System.Object

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

.NET Framework
Available since 3.5
Return to top