DefaultControllerFactory.CreateController(RequestContext, String) Метод

Определение

Создает указанный контроллер, используя заданный контекст запроса.

public virtual System.Web.Mvc.IController CreateController (System.Web.Routing.RequestContext requestContext, string controllerName);
abstract member CreateController : System.Web.Routing.RequestContext * string -> System.Web.Mvc.IController
override this.CreateController : System.Web.Routing.RequestContext * string -> System.Web.Mvc.IController
Public Overridable Function CreateController (requestContext As RequestContext, controllerName As String) As IController

Параметры

requestContext
RequestContext

Контекст HTTP-запроса, включающий в себя контекст HTTP и данные маршрута.

controllerName
String

Имя контроллера.

Возвращаемое значение

Контроллер.

Реализации

Исключения

Параметр requestContext имеет значение null.

Параметр controllerName имеет значение NULL или пусто.

Применяется к