Export (0) Print
Expand All

HttpSessionState.Add Method

Adds a new item to session state.

[Visual Basic]
Public Sub Add( _
   ByVal name As String, _
   ByVal value As Object _
)
[C#]
public void Add(
 string name,
 object value
);
[C++]
public: void Add(
 String* name,
 Object* value
);
[JScript]
public function Add(
   name : String,
 value : Object
);

Parameters

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

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpSessionState Class | HttpSessionState Members | System.Web.SessionState Namespace

Show:
© 2014 Microsoft