Export (0) Print
Expand All

ValueResultConverter<T>.Convert Method

Converts the result of an action with arbitrary return type T to an instance of HttpResponseMessage.

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

public HttpResponseMessage Convert(
	HttpControllerContext controllerContext,
	Object actionResult
)

Parameters

controllerContext
Type: System.Web.Http.Controllers.HttpControllerContext

The action controller context.

actionResult
Type: System.Object

The execution result.

Return Value

Type: HttpResponseMessage
The newly created HttpResponseMessage object.

Implements

IActionResultConverter.Convert(HttpControllerContext, Object)
Show:
© 2014 Microsoft