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
MimeType
Gets or sets the MIME type - for example "text/xml".
public string MimeType { get; set; }
Property Value
Methods
CompareTo(IisMimeType)
Compares two CENTREL.XIA.Configuration.Types.IisMimeType objects to allow sorting alphabetically by extension.
public int CompareTo(IisMimeType other)
Parameters
other
IisMimeTypeThe 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.