Share via


StaticFileOptions.DefaultContentType Property

 

The default content type for a request if the ContentTypeProvider cannot determine one. None is provided by default, so the client must determine the format themselves. http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html\#sec7

Namespace:   Microsoft.Owin.StaticFiles
Assembly:  Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)

Syntax

public string DefaultContentType { get; set; }
public:
property String^ DefaultContentType {
    String^ get();
    void set(String^ value);
}
member DefaultContentType : string with get, set
Public Property DefaultContentType As String

Property Value

Type: System.String

Returns String.

See Also

StaticFileOptions Class
Microsoft.Owin.StaticFiles Namespace

Return to top