IHttpSessionState::IsReadOnly Property

 

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

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

property bool IsReadOnly {
	bool get();
}

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: