- 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.
Adds a named value to the session-state collection.
Context.Session.Add() adds a named value to the session-state collection. Check Context.Session.CallResult.Success before using the return value.