Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Add Method

HttpSessionStateBase.Add Method

When overridden in a derived class, adds an item to the session-state collection.

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

'Declaration
Public Overridable Sub Add ( _
	name As String, _
	value As Object _
)

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.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

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