Add Method
Syntax
Context.Session.Add as V (Name as C, Value as A)
Arguments
- V
Return type
- Name as C
The name of the session-state variable.
- Value as A
The value of the session-state variable. Although type A, any type, is allowed it is deprecated for the value. The value should be of type C in order to support the most types of session-state providers under IIS.
Description
Adds a named value to the session-state collection.
Discussion
Context.Session.Add() adds a named value to the session-state collection. Check Context.Session.CallResult.Success before using the return value.