Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
---|---|---|
![]() |
ValueResultConverter<T>() | Initializes a new instance of the ValueResultConverter<T> class. |
Methods
Name | Description | |
---|---|---|
![]() |
Convert(HttpControllerContext, Object) | Converts the result of an action with arbitrary return type T to an instance of HttpResponseMessage. |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
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