C# Class MvcJson.Net.Controllers.HomeController

Inheritance: Controller
Afficher le fichier Open project: dax70/MvcJson.Net

Méthodes publiques

Méthode Description
Index ( bool preferred = false ) : System.Web.Mvc.ActionResult

Méthodes protégées

Méthode Description
Json ( object data, string contentType, Encoding contentEncoding, JsonRequestBehavior behavior ) : System.Web.Mvc.JsonResult

Creates a System.Web.Mvc.JsonResult object that serializes the specified object to JavaScript Object Notation (JSON).

Method Details

Index() public méthode

public Index ( bool preferred = false ) : System.Web.Mvc.ActionResult
preferred bool
Résultat System.Web.Mvc.ActionResult

Json() protected méthode

Creates a System.Web.Mvc.JsonResult object that serializes the specified object to JavaScript Object Notation (JSON).
protected Json ( object data, string contentType, Encoding contentEncoding, JsonRequestBehavior behavior ) : System.Web.Mvc.JsonResult
data object The JavaScript object graph to serialize.
contentType string The content type (MIME type).
contentEncoding System.Text.Encoding The content encoding.
behavior JsonRequestBehavior The JSON request behavior
Résultat System.Web.Mvc.JsonResult