Show / Hide Table of Contents

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 Source

GetMediaType(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 null.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX