IHttpSessionState.IsReadOnly Property

 

Gets a value indicating whether the session is read-only.

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

ReadOnly Property IsReadOnly As Boolean

Property Value

Type: System.Boolean

true if the session is read-only; otherwise, false.

Session state is set to read-only by setting the EnableSessionState page attribute to ReadOnly.

The following code example implements the IsReadOnly property of the IHttpSessionState interface to return the value of an internal variable that was set in the constructor.

Public ReadOnly Property IsReadOnly As Boolean Implements IHttpSessionState.IsReadOnly    
  Get
    Return pIsReadonly
  End Get
End Property

.NET Framework
Available since 2.0
Return to top
Show: