November Happy Hour will be moved to Thursday December 5th.

Class DefaultMimeTypeRegistry

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
DefaultMimeTypeRegistry
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Framework.dll
Version: 10.10.4
Syntax
[ServiceConfiguration(typeof(IMimeTypeRegistry), IncludeServiceAccessor = false, Lifecycle = ServiceInstanceScope.Singleton)]
public class DefaultMimeTypeRegistry : IMimeTypeRegistry, IEnumerable<KeyValuePair<string, string>>, IEnumerable

Constructors

DefaultMimeTypeRegistry()

Declaration
public DefaultMimeTypeRegistry()

Methods

Add(String, String)

Declaration
public void Add(string extension, string mimeType)
Parameters
Type Name Description
System.String extension
System.String mimeType

Clear()

Declaration
public void Clear()

Get(String)

Declaration
public string Get(string extension)
Parameters
Type Name Description
System.String extension
Returns
Type Description
System.String

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.String>>

Remove(String)

Declaration
public void Remove(string extension)
Parameters
Type Name Description
System.String extension

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods