共用方式為


MediaTypeProvider Class

Definition

A default implementation of IMediaTypeProvider which gets the media type from an minimalistic in-memory collection without any external dependencies.

public class MediaTypeProvider : Microsoft.WindowsAzure.Mobile.Service.Content.IMediaTypeProvider
type MediaTypeProvider = class
    interface IMediaTypeProvider
Public Class MediaTypeProvider
Implements IMediaTypeProvider
Inheritance
MediaTypeProvider
Implements

Constructors

MediaTypeProvider(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.

Methods

GetMediaType(String)

Returns the media type for the specified file name.

Applies to