DefaultHttpControllerActivator.Create Method
Creates the IHttpController specified by controllerType using the given request.
Namespace: System.Web.Http.Dispatcher
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Function Create ( _
request As HttpRequestMessage, _
controllerDescriptor As HttpControllerDescriptor, _
controllerType As Type _
) As IHttpController
'Usage
Dim instance As DefaultHttpControllerActivator
Dim request As HttpRequestMessage
Dim controllerDescriptor As HttpControllerDescriptor
Dim controllerType As Type
Dim returnValue As IHttpController
returnValue = instance.Create(request, _
controllerDescriptor, controllerType)
public IHttpController Create(
HttpRequestMessage request,
HttpControllerDescriptor controllerDescriptor,
Type controllerType
)
public:
virtual IHttpController^ Create(
HttpRequestMessage^ request,
HttpControllerDescriptor^ controllerDescriptor,
Type^ controllerType
) sealed
abstract Create :
request:HttpRequestMessage *
controllerDescriptor:HttpControllerDescriptor *
controllerType:Type -> IHttpController
override Create :
request:HttpRequestMessage *
controllerDescriptor:HttpControllerDescriptor *
controllerType:Type -> IHttpController
public final function Create(
request : HttpRequestMessage,
controllerDescriptor : HttpControllerDescriptor,
controllerType : Type
) : IHttpController
Parameters
request
Type: HttpRequestMessageThe request message.
controllerDescriptor
Type: System.Web.Http.Controllers.HttpControllerDescriptorThe controller descriptor.
controllerType
Type: System.TypeThe type of the controller.
Return Value
Type: System.Web.Http.Controllers.IHttpController
An instance of type controllerType.
Implements
IHttpControllerActivator.Create(HttpRequestMessage, HttpControllerDescriptor, Type)