Partager via


HttpControllerDescriptor.CreateController Method

Creates a controller instance for the given HttpRequestMessage.

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

Syntax

'Declaration
Public Overridable Function CreateController ( _
    request As HttpRequestMessage _
) As IHttpController
'Usage
Dim instance As HttpControllerDescriptor 
Dim request As HttpRequestMessage 
Dim returnValue As IHttpController 

returnValue = instance.CreateController(request)
public virtual IHttpController CreateController(
    HttpRequestMessage request
)
public:
virtual IHttpController^ CreateController(
    HttpRequestMessage^ request
)
abstract CreateController : 
        request:HttpRequestMessage -> IHttpController  
override CreateController : 
        request:HttpRequestMessage -> IHttpController
public function CreateController(
    request : HttpRequestMessage
) : IHttpController

Parameters

  • request
    Type: HttpRequestMessage

    The request message

Return Value

Type: System.Web.Http.Controllers.IHttpController
The created controller instance.

See Also

Reference

HttpControllerDescriptor Class

System.Web.Http.Controllers Namespace