JsonResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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() |
Initializes a new instance of the JsonResult class. |
Properties
ContentEncoding |
Gets or sets the content encoding. |
ContentType |
Gets or sets the type of the content. |
Data |
Gets or sets the data. |
JsonRequestBehavior |
Gets or sets a value that indicates whether HTTP GET requests from the client are allowed. |
MaxJsonLength |
Gets or sets the maximum length of data. |
RecursionLimit |
Gets or sets the recursion limit. |
Methods
ExecuteResult(ControllerContext) |
Enables processing of the result of an action method by a custom type that inherits from the ActionResult class. |