Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpSessionStateContainer::Add Method

Adds a new item to the session-state collection.

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

public:
virtual void Add(
	String^ name, 
	Object^ value
) sealed

Parameters

name
Type: System::String

The name of the item to add to the session-state collection.

value
Type: System::Object

The value of the item to add to the session-state collection.

Implements

IHttpSessionState::Add(String, Object)

If the name parameter refers to an existing session-state item, the existing item is overwritten with the specified value.

.NET Framework

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