public SetSessionStateBehavior ( SessionStateBehavior sessionStateBehavior ) : void | ||
sessionStateBehavior | SessionStateBehavior | |
Résultat | void |
public override void SetSessionStateBehavior(SessionStateBehavior sessionStateBehavior) { w.SetSessionStateBehavior(sessionStateBehavior); }
private static HttpResponse ProcessRequest(IHttpHandler page, TextWriter writer) { var response = new HttpResponse(writer); var context = new HttpContext(HttpContext.Current.Request, response); context.SetSessionStateBehavior(SessionStateBehavior.Required); page.ProcessRequest(context); return response; }