Partager via


JsonResult.JsonRequestBehavior Property

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property JsonRequestBehavior As JsonRequestBehavior
    Get
    Set
public JsonRequestBehavior JsonRequestBehavior { get; set; }
public:
property JsonRequestBehavior JsonRequestBehavior {
    JsonRequestBehavior get ();
    void set (JsonRequestBehavior value);
}

Property Value

Type: System.Web.Mvc.JsonRequestBehavior
A value that indicates whether HTTP GET requests from the client are allowed.

Remarks

The default value is DenyGet.

See Also

Reference

JsonResult Class

System.Web.Mvc Namespace