Editare

Partajați prin


HttpContextBase.SetSessionStateBehavior(SessionStateBehavior) Method

Definition

When overridden in a derived class, sets the type of session state behavior that is required to support an HTTP request.

public:
 virtual void SetSessionStateBehavior(System::Web::SessionState::SessionStateBehavior sessionStateBehavior);
public virtual void SetSessionStateBehavior (System.Web.SessionState.SessionStateBehavior sessionStateBehavior);
abstract member SetSessionStateBehavior : System.Web.SessionState.SessionStateBehavior -> unit
override this.SetSessionStateBehavior : System.Web.SessionState.SessionStateBehavior -> unit
Public Overridable Sub SetSessionStateBehavior (sessionStateBehavior As SessionStateBehavior)

Parameters

sessionStateBehavior
SessionStateBehavior

One of the enumeration values that specifies what type of session state behavior is required.

Exceptions

A derived type fails to implement this method.

Remarks

The SetSessionStateBehavior method provides a base method that must be implemented by classes that inherit from this type. ASP.NET implements this method in the HttpContextWrapper and HttpContext classes.

Applies to

See also