SessionStateBehavior Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the type of session support that is required in order to handle a request.
public enum class SessionStateBehavior
public enum SessionStateBehavior
type SessionStateBehavior =
Public Enum SessionStateBehavior
- Inheritance
Fields
Default | 0 | The default ASP.NET logic is used to determine the session state behavior for the request. The default logic looks for the existence of marker session state interfaces on the IHttpHandler. |
Disabled | 3 | Session state is not enabled for processing the request. This setting overrides whatever session behavior would have been determined by inspecting the handler for the request. |
ReadOnly | 2 | Read-only session state is enabled for the request. This means that session state cannot be updated. This setting overrides whatever session state behavior would have been determined by inspecting the handler for the request. |
Required | 1 | Full read-write session state behavior is enabled for the request. This setting overrides whatever session behavior would have been determined by inspecting the handler for the request. |
Remarks
The SessionStateBehavior enumeration is used with the SetSessionStateBehavior method. You can call this method to indicate that session state support is needed to handle a request, and pass a SessionStateBehavior enumeration value to specify what type of session state behavior applies to the request.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈