Share via


FileExtensionContentTypeProvider Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod FileExtensionContentTypeProvider()

Creates a new provider with a set of default mappings.

System_CAPS_pubmethod FileExtensionContentTypeProvider(IDictionary<String, String>)

Creates a lookup engine using the provided mapping. It is recommended that the IDictionary instance use StringComparer.OrdinalIgnoreCase.

See Also

FileExtensionContentTypeProvider Class
Microsoft.Owin.StaticFiles.ContentTypes Namespace

Return to top

FileExtensionContentTypeProvider Constructor ()

Creates a new provider with a set of default mappings.

Syntax

public FileExtensionContentTypeProvider()
public:
FileExtensionContentTypeProvider()
new : unit -> FileExtensionContentTypeProvider
Public Sub New

Return to top

FileExtensionContentTypeProvider Constructor (IDictionary<String, String>)

Creates a lookup engine using the provided mapping. It is recommended that the IDictionary instance use StringComparer.OrdinalIgnoreCase.

Syntax

public FileExtensionContentTypeProvider(
    IDictionary<string, string> mapping
)
public:
FileExtensionContentTypeProvider(
    IDictionary<String^, String^>^ mapping
)
new : 
        mapping:IDictionary<string, string> -> FileExtensionContentTypeProvider
Public Sub New (
    mapping As IDictionary(Of String, String)
)

Parameters

Return to top