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 | |
---|---|---|
ValueResultConverter<T> | Initializes a new instance of the ValueResultConverter<T> class. |
Top
Methods
Name | Description | |
---|---|---|
Convert | Converts the result of an action with arbitrary return type T to an instance of HttpResponseMessage. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.