MediaTypeProvider Constructor (IDictionary<String^, MediaTypeHeaderValue^>^)

 

Creates a new instance of the MediaTypeProvider class using the set of file path extension to media type mappings provided by mediaTypeRegistry.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Content
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

public:
MediaTypeProvider(
	IDictionary<String^, MediaTypeHeaderValue^>^ mediaTypeRegistry
)

Parameters

mediaTypeRegistry
Type: System.Collections.Generic::IDictionary<String^, MediaTypeHeaderValue^>^

A set of file extension to media type mappings. The file extensions must be of the form ".txt" (i.e. including a leading ".").

Return to top
Show: