Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

JsonResult<T> Class

 

Represents an action result that returns an OK response with JSON data.

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

System::Object
  System.Web.Http.Results::JsonResult<T>

generic<typename T>
public ref class JsonResult : IHttpActionResult

Type Parameters

T

The type of content in the entity body.

NameDescription
System_CAPS_pubmethodJsonResult<T>(T, JsonSerializerSettings^, Encoding^, ApiController^)

Initializes a new instance of the JsonResult<T> class with the values provided.

System_CAPS_pubmethodJsonResult<T>(T, JsonSerializerSettings^, Encoding^, HttpRequestMessage^)

Initializes a new instance of the JsonResult<T> class with the values provided.

NameDescription
System_CAPS_pubpropertyContent

Gets the content value to serialize in the entity body.

System_CAPS_pubpropertyEncoding

Gets the content encoding.

System_CAPS_pubpropertyRequest

Gets the request message which led to this result.

System_CAPS_pubpropertySerializerSettings

Gets the serializer settings.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodExecuteAsync(CancellationToken)

Creates a response message asynchronously.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: