Share via


ValueResultConverter<T> Class

A converter for creating responses from actions that return an arbitrary T value.

Inheritance Hierarchy

System.Object
  System.Web.Http.Controllers.ValueResultConverter<T>

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

Syntax

'Declaration
Public Class ValueResultConverter(Of T) _
    Implements IActionResultConverter
'Usage
Dim instance As ValueResultConverter(Of T)
public class ValueResultConverter<T> : IActionResultConverter
generic<typename T>
public ref class ValueResultConverter : IActionResultConverter
type ValueResultConverter<'T> =  
    class 
        interface IActionResultConverter 
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The declared return type of an action.

The ValueResultConverter<T> type exposes the following members.

Constructors

  Name Description
Public method ValueResultConverter<T> Initializes a new instance of the ValueResultConverter<T> class.

Top

Methods

  Name Description
Public method Convert Converts the result of an action with arbitrary return type T to an instance of HttpResponseMessage.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Controllers Namespace