DefaultControllerFactory.IControllerFactory.GetControllerSessionBehavior 方法

定義

這個 API 支援 ASP.NET MVC 基礎結構,但不建議直接使用於您的程式碼中。 這個方法會呼叫 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

參數

requestContext
RequestContext

要求內容。

controllerName
String

控制器名稱。

傳回

控制器的工作階段行為。

實作

適用於