Table of Contents

Class IisMimeType

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

Represents a Microsoft IIS MIME type.

public class IisMimeType : IisConfigurationElement, IComparable<IisMimeType>
Inheritance
IisMimeType
Implements
Inherited Members

Constructors

IisMimeType()

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

public IisMimeType()

Properties

Extension

Gets or sets the extension of the MIME type - for example ".xml".

public string Extension { get; set; }

Property Value

string

MimeType

Gets or sets the MIME type - for example "text/xml".

public string MimeType { get; set; }

Property Value

string

Methods

CompareTo(IisMimeType)

Compares two CENTREL.XIA.Configuration.Types.IisMimeType objects to allow sorting alphabetically by extension.

public int CompareTo(IisMimeType other)

Parameters

other IisMimeType

The CENTREL.XIA.Configuration.Types.IisMimeType to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.IisMimeType objects.

ToString()

Returns the MIME type as a human readable string.

public override string ToString()

Returns

string

The MIME type as a human readable string.