SessionStateActions 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.
Identifies whether a session item from a data store is for a session that requires initialization.
This enumeration supports a bitwise combination of its member values.
public enum class SessionStateActions
[System.Flags]
public enum SessionStateActions
[<System.Flags>]
type SessionStateActions =
Public Enum SessionStateActions
- Inheritance
- Attributes
Fields
InitializeItem | 1 | The session item from the data store is for a session that requires initialization. |
None | 0 | No initialization actions need to be performed by the calling code. |
Examples
For an example of a session-state store provider implementation that uses the SessionStateActions enumeration, see Implementing a Session-State Store Provider.
Remarks
The SessionStateActions enumeration is used by the GetItem and GetItemExclusive methods of a SessionStateStoreProviderBase implementation. When a session item is retrieved from the data store, the enumeration value indicates whether the session requires initialization or not based on a value stored with the data. The GetItem and GetItemExclusive methods set an actions
parameter to a SessionStateActions enumeration value based on this value retrieved with the session item. If the value of the actions
parameter is set to InitializeItem, the SessionStateModule initializes the session and executes the Session_OnStart
event defined in the Global.asax file for the ASP.NET application. If the value of the actions
parameter is None, no additional steps are taken for the current session.
A session item created by the CreateUninitializedItem method is created with a value indicating that the item requires initialization and that the GetItem and GetItemExclusive methods should set the actions
parameter to InitializeItem.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기