Share via


HttpActionDescriptor.ResultConverter Property

Gets the converter for correctly transforming the result of calling ExecuteAsync(HttpControllerContext, IDictionaryString, Object)" into an instance of HttpResponseMessage.

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

Syntax

'Declaration
Public Overridable ReadOnly Property ResultConverter As IActionResultConverter 
    Get
'Usage
Dim instance As HttpActionDescriptor 
Dim value As IActionResultConverter 

value = instance.ResultConverter
public virtual IActionResultConverter ResultConverter { get; }
public:
virtual property IActionResultConverter^ ResultConverter {
    IActionResultConverter^ get ();
}
abstract ResultConverter : IActionResultConverter 
override ResultConverter : IActionResultConverter
function get ResultConverter () : IActionResultConverter

Property Value

Type: System.Web.Http.Controllers.IActionResultConverter
The action result converter.

Remarks

The behavior of the returned converter should align with the action's declared ReturnType.

See Also

Reference

HttpActionDescriptor Class

System.Web.Http.Controllers Namespace