JsonResult JsonResult JsonResult Class

Definition

Represents a class that is used to send JSON-formatted content to the response.

public class JsonResult : System.Web.Mvc.ActionResult
type JsonResult = class
    inherit ActionResult
Public Class JsonResult
Inherits ActionResult
Inheritance

Constructors

JsonResult() JsonResult() JsonResult()

Initializes a new instance of the JsonResult class.

Properties

ContentEncoding ContentEncoding ContentEncoding

Gets or sets the content encoding.

ContentType ContentType ContentType

Gets or sets the type of the content.

Data Data Data

Gets or sets the data.

JsonRequestBehavior JsonRequestBehavior JsonRequestBehavior

Gets or sets a value that indicates whether HTTP GET requests from the client are allowed.

MaxJsonLength MaxJsonLength MaxJsonLength

Gets or sets the maximum length of data.

RecursionLimit RecursionLimit RecursionLimit

Gets or sets the recursion limit.

Methods

ExecuteResult(ControllerContext) ExecuteResult(ControllerContext) ExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.

Applies to