Share via


FileResult.ContentType Property

Gets the content type to use for the response.

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

Syntax

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

Property Value

Type: System.String
The type of the content.

See Also

Reference

FileResult Class

System.Web.Mvc Namespace