DefaultControllerFactory.GetControllerType(RequestContext, String) 方法

定義

擷取指定之名稱和要求內容的控制器型別。

protected internal virtual Type GetControllerType (System.Web.Routing.RequestContext requestContext, string controllerName);
abstract member GetControllerType : System.Web.Routing.RequestContext * string -> Type
override this.GetControllerType : System.Web.Routing.RequestContext * string -> Type
Protected Friend Overridable Function GetControllerType (requestContext As RequestContext, controllerName As String) As Type

參數

requestContext
RequestContext

HTTP 要求的內容,其中包含 HTTP 內容和路由資料。

controllerName
String

控制器的名稱。

傳回

控制器類型。

適用於