IMediaTypeProvider::GetMediaType Method (String^)

 

Returns the media type for the specified file name.

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

MediaTypeHeaderValue^ GetMediaType(
	String^ fileName
)

Parameters

fileName
Type: System::String^

The file name to determine the mapping for.

Return Value

Type: System.Net.Http.Headers::MediaTypeHeaderValue^

A new MediaTypeHeaderValue representing the media type for the given file name. If there is no mapping found then a value of application/octet-stream is returned.

Return to top
Show: