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
'Usage
Dim instance As FileResult 
Dim value As String 

value = instance.ContentType
public string ContentType { get; private set; }
public:
property String^ ContentType {
    String^ get ();
    private: void set (String^ value);
}
member ContentType : string with get, private set
function get ContentType () : String 
private function set ContentType (value : String)

Property Value

Type: System.String
The type of the content.

See Also

Reference

FileResult Class

System.Web.Mvc Namespace