IActionResultConverter.Convert Method

Converts the specified IActionResultConverter object to another object.

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

Syntax

'Declaration
Function Convert ( _
    controllerContext As HttpControllerContext, _
    actionResult As Object _
) As HttpResponseMessage
'Usage
Dim instance As IActionResultConverter 
Dim controllerContext As HttpControllerContext 
Dim actionResult As Object 
Dim returnValue As HttpResponseMessage 

returnValue = instance.Convert(controllerContext, _
    actionResult)
HttpResponseMessage Convert(
    HttpControllerContext controllerContext,
    Object actionResult
)
HttpResponseMessage^ Convert(
    HttpControllerContext^ controllerContext, 
    Object^ actionResult
)
abstract Convert : 
        controllerContext:HttpControllerContext * 
        actionResult:Object -> HttpResponseMessage
function Convert(
    controllerContext : HttpControllerContext, 
    actionResult : Object
) : HttpResponseMessage

Parameters

Return Value

Type: HttpResponseMessage
The converted object.

See Also

Reference

IActionResultConverter Interface

System.Web.Http.Controllers Namespace