Επεξεργασία

Κοινή χρήση μέσω


HttpContextWrapper.SetSessionStateBehavior(SessionStateBehavior) Method

Definition

Sets the type of session state behavior that is required in order to support an HTTP request.

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

Parameters

sessionStateBehavior
SessionStateBehavior

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

Remarks

The SetSessionStateBehavior method overrides the base SetSessionStateBehavior method. To implement the base method, the SetSessionStateBehavior method calls the SetSessionStateBehavior method of the HttpContext class and passes the sessionStateBehavior setting.

Applies to

See also