Compartilhar via


JsonResult.ContentType Property

Gets or sets the type of the content.

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

Syntax

'Declaration
Public Property ContentType As String
    Get
    Set
public string ContentType { get; set; }
public:
property String^ ContentType {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The type of the content.

See Also

Reference

JsonResult Class

System.Web.Mvc Namespace