IReadOnlySessionState Interface

IReadOnlySessionState Interface

 

Specifies that the target HTTP handler requires only read access to session-state values. This is a marker interface and has no methods.

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

public interface IReadOnlySessionState : IRequiresSessionState

Implement the IReadOnlySessionState interface in your custom handler to identify that your handler requires only read access to session-state values.

The following code example examines the current HTTP Handler property to determine whether it requires only read access to session-state values.

bool readOnlySession = false;

if (Context.Handler is IReadOnlySessionState)
  readOnlySession = true;

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft