FileExtensionContentTypeProvider Class

 

Provides a mapping between file extensions and MIME types.

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

System::Object
  Microsoft.Owin.StaticFiles.ContentTypes::FileExtensionContentTypeProvider

public ref class FileExtensionContentTypeProvider : IContentTypeProvider

NameDescription
System_CAPS_pubmethodFileExtensionContentTypeProvider()

Creates a new provider with a set of default mappings.

System_CAPS_pubmethodFileExtensionContentTypeProvider(IDictionary<String^, String^>^)

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

NameDescription
System_CAPS_pubpropertyMappings

The cross reference table of file extensions and content-types.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetContentType(String^, String^)

Given a file path, determine the MIME type

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: