HttpSessionStateContainer.Add Method (String, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds a new item to the session-state collection.

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

public void Add(
	string name,
	object value
)

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.

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

.NET Framework
Available since 2.0
Return to top
Show: