IHttpControllerFactory.CreateController Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates the IHttpController using the specified context and controller name.
Namespace: System.Web.Http.Dispatcher
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Function CreateController ( _
controllerContext As HttpControllerContext, _
controllerName As String _
) As IHttpController
IHttpController CreateController(
HttpControllerContext controllerContext,
string controllerName
)
IHttpController^ CreateController(
HttpControllerContext^ controllerContext,
String^ controllerName
)
abstract CreateController :
controllerContext:HttpControllerContext *
controllerName:string -> IHttpController
function CreateController(
controllerContext : HttpControllerContext,
controllerName : String
) : IHttpController
Parameters
- controllerContext
Type: System.Web.Http.Controllers.HttpControllerContext
The controller context.
- controllerName
Type: System.String
The name of the controller.
Return Value
Type: System.Web.Http.Controllers.IHttpController
An IHttpController instance.