IHttpSessionState.Mode Property


Gets the current session-state mode.

Namespace:   System.Web.SessionState
Assembly:  System.Web (in System.Web.dll)

SessionStateMode Mode { get; }

Property Value

Type: System.Web.SessionState.SessionStateMode

One of the SessionStateMode values.

For information on different session-state modes, see Session-State Modes.

The following code example implements the Mode property of the IHttpSessionState interface.

public SessionStateMode Mode
  get { return pMode; }

.NET Framework
Available since 2.0
Return to top