Share via


ValueResultConverter<T> Class

 

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

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

Inheritance Hierarchy

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

Syntax

public class ValueResultConverter<T> : IActionResultConverter
generic<typename T>
public ref class ValueResultConverter : IActionResultConverter
type ValueResultConverter<'T> = 
    class
        interface IActionResultConverter
    end
Public Class ValueResultConverter(Of T)
    Implements IActionResultConverter

Type Parameters

  • T
    The declared return type of an action.

Constructors

Name Description
System_CAPS_pubmethod ValueResultConverter<T>()

Initializes a new instance of the ValueResultConverter<T> class.

Methods

Name Description
System_CAPS_pubmethod Convert(HttpControllerContext, Object)

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.Http.Controllers Namespace

Return to top