Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Item Property (String)
Collapse the table of content
Expand the table of content

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft