Class DefaultMimeTypeRegistry
Inheritance
System.Object
DefaultMimeTypeRegistry
Implements
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.String>>
System.Collections.IEnumerable
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class DefaultMimeTypeRegistry : Object, 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 |
Implements
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable