Interface IMediaTypeProvider
Singleton application service contract providing the media type based on its name.
Namespace: Kephas.Net.Mime
Assembly: Kephas.Core.dll
Syntax
[SingletonAppServiceContract]
public interface IMediaTypeProvider
Methods
| Improve this Doc View SourceGetMediaType(String, Boolean)
Gets the media type based on the media type name.
Declaration
Type GetMediaType(string mediaTypeName, bool throwIfNotFound = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaTypeName | The media type name. |
System.Boolean | throwIfNotFound | True to throw if a format is not found (optional). |
Returns
Type | Description |
---|---|
System.Type | The media type or |