DefaultControllerFactory.IControllerFactory.GetControllerSessionBehavior Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Ten interfejs API obsługuje infrastrukturę ASP.NET MVC i nie jest przeznaczony do użycia bezpośrednio z kodu. Ta metoda wywołuje metodę GetControllerSessionBehavior(RequestContext, Type) .
System.Web.SessionState.SessionStateBehavior IControllerFactory.GetControllerSessionBehavior (System.Web.Routing.RequestContext requestContext, string controllerName);
abstract member System.Web.Mvc.IControllerFactory.GetControllerSessionBehavior : System.Web.Routing.RequestContext * string -> System.Web.SessionState.SessionStateBehavior
override this.System.Web.Mvc.IControllerFactory.GetControllerSessionBehavior : System.Web.Routing.RequestContext * string -> System.Web.SessionState.SessionStateBehavior
Function GetControllerSessionBehavior (requestContext As RequestContext, controllerName As String) As SessionStateBehavior Implements IControllerFactory.GetControllerSessionBehavior
Parametry
- requestContext
- RequestContext
Kontekst żądania.
- controllerName
- String
Nazwa kontrolera.
Zwraca
Zachowanie sesji kontrolera.