FileExtensionContentTypeProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
FileExtensionContentTypeProvider()
Creates a new provider with a set of default mappings.
public:
FileExtensionContentTypeProvider();
public FileExtensionContentTypeProvider ();
Public Sub New ()
Applies to
FileExtensionContentTypeProvider(IDictionary<String,String>)
Creates a lookup engine using the provided mapping. It is recommended that the IDictionary instance use StringComparer.OrdinalIgnoreCase.
public:
FileExtensionContentTypeProvider(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ mapping);
public FileExtensionContentTypeProvider (System.Collections.Generic.IDictionary<string,string> mapping);
new Microsoft.AspNetCore.StaticFiles.FileExtensionContentTypeProvider : System.Collections.Generic.IDictionary<string, string> -> Microsoft.AspNetCore.StaticFiles.FileExtensionContentTypeProvider
Public Sub New (mapping As IDictionary(Of String, String))
Parameters
- mapping
- IDictionary<String,String>
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for