VoidResultConverter.Convert Method
Converts the created response from actions that do not return a value.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Function Convert ( _
controllerContext As HttpControllerContext, _
actionResult As Object _
) As HttpResponseMessage
'Usage
Dim instance As VoidResultConverter
Dim controllerContext As HttpControllerContext
Dim actionResult As Object
Dim returnValue As HttpResponseMessage
returnValue = instance.Convert(controllerContext, _
actionResult)
public HttpResponseMessage Convert(
HttpControllerContext controllerContext,
Object actionResult
)
public:
virtual HttpResponseMessage^ Convert(
HttpControllerContext^ controllerContext,
Object^ actionResult
) sealed
abstract Convert :
controllerContext:HttpControllerContext *
actionResult:Object -> HttpResponseMessage
override Convert :
controllerContext:HttpControllerContext *
actionResult:Object -> HttpResponseMessage
public final function Convert(
controllerContext : HttpControllerContext,
actionResult : Object
) : HttpResponseMessage
Parameters
controllerContext
Type: System.Web.Http.Controllers.HttpControllerContextThe context of the controller.
actionResult
Type: System.ObjectThe result of the action.
Return Value
Type: HttpResponseMessage
The converted response.
Implements
IActionResultConverter.Convert(HttpControllerContext, Object)