Table of Contents

Class SessionStateAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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 SessionStateBehavior

The 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.