System.Web.SessionState.HttpSessionStateContainer.Add Method

Adds a new item to the session-state collection.

Syntax

public void Add (string name, object value)

Parameters

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

Remarks

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

Requirements

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