FileExtensionContentTypeProvider Constructor
Namespace: Microsoft.Owin.StaticFiles.ContentTypes
Assembly: Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)
Overload List
Name | Description | |
---|---|---|
![]() |
FileExtensionContentTypeProvider() | Creates a new provider with a set of default mappings. |
![]() |
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
- mapping
Type: System.Collections.Generic.IDictionary<String, String>
Return to top