Table of Contents

Class IisMimeTypeCollection

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a collection of IIS MIME types.

public class IisMimeTypeCollection : Collection<IisMimeType>, IList<IisMimeType>, ICollection<IisMimeType>, IList, ICollection, IReadOnlyList<IisMimeType>, IReadOnlyCollection<IisMimeType>, IEnumerable<IisMimeType>, IEnumerable
Inheritance
IisMimeTypeCollection
Implements
Inherited Members

Constructors

IisMimeTypeCollection()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.IisMimeTypeCollection class.

public IisMimeTypeCollection()

Methods

Exists(string)

Returns a System.Boolean value that indicates whether a MIME type with the specified extension exists within the collection.

public bool Exists(string extension)

Parameters

extension string

The extension of the CENTREL.XIA.Configuration.Types.IisMimeType to locate.

Returns

bool

A System.Boolean value that indicates whether a MIME type with the specified extension exists within the collection.

FindByExtension(string)

Returns the CENTREL.XIA.Configuration.Types.IisMimeType with the specified extension, or null if no CENTREL.XIA.Configuration.Types.IisMimeType with that extension is found.

public IisMimeType FindByExtension(string extension)

Parameters

extension string

The extension of the CENTREL.XIA.Configuration.Types.IisMimeType to locate.

Returns

IisMimeType

The CENTREL.XIA.Configuration.Types.IisMimeType with the specified extension.

Sort()

Sorts the values in the collection.

public void Sort()