Share via


IHttpControllerActivator.Create Method

Creates an IHttpController object.

Namespace:  System.Web.Http.Dispatcher
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Function Create ( _
    request As HttpRequestMessage, _
    controllerDescriptor As HttpControllerDescriptor, _
    controllerType As Type _
) As IHttpController
'Usage
Dim instance As IHttpControllerActivator 
Dim request As HttpRequestMessage 
Dim controllerDescriptor As HttpControllerDescriptor 
Dim controllerType As Type 
Dim returnValue As IHttpController 

returnValue = instance.Create(request, _
    controllerDescriptor, controllerType)
IHttpController Create(
    HttpRequestMessage request,
    HttpControllerDescriptor controllerDescriptor,
    Type controllerType
)
IHttpController^ Create(
    HttpRequestMessage^ request, 
    HttpControllerDescriptor^ controllerDescriptor, 
    Type^ controllerType
)
abstract Create : 
        request:HttpRequestMessage * 
        controllerDescriptor:HttpControllerDescriptor * 
        controllerType:Type -> IHttpController
function Create(
    request : HttpRequestMessage, 
    controllerDescriptor : HttpControllerDescriptor, 
    controllerType : Type
) : IHttpController

Parameters

  • request
    Type: HttpRequestMessage
    The message request.
  • controllerType
    Type: System.Type
    The type of the controller.

Return Value

Type: System.Web.Http.Controllers.IHttpController
An IHttpController object.

See Also

Reference

IHttpControllerActivator Interface

System.Web.Http.Dispatcher Namespace