Class SessionStateAttribute
Specifies the session state of the controller.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class SessionStateAttribute : Attribute
- Inheritance
-
SessionStateAttribute
- Inherited Members
Constructors
SessionStateAttribute(SessionStateBehavior)
Initializes a new instance of the SessionStateAttribute class
public SessionStateAttribute(SessionStateBehavior behavior)
Parameters
behavior
SessionStateBehaviorThe type of the session state.
Properties
Behavior
Get the session state behavior for the controller.
public SessionStateBehavior Behavior { get; }
Property Value
- SessionStateBehavior
The session state behavior for the controller.