MimeType class

Represents an Internet Media Types

public class MimeType : IEquatable<MimeType>


Name Description
MimeType(string) Initializes a new instance of MIME type based on serialized string value.


Name Description
SubType { get; } Gets the sub media type.
Type { get; } Gets the media type.


Name Description
static FromFileExtension(string) Creates a new MIME type based on file extension.
Equals(MimeType) Indicates whether the current object is equal to another object of the same type.
override Equals(object) Determines whether the specified Object is equal to the current Object.
override GetHashCode() Returns a hash code for this instance.
override ToString() Returns a String that represents Mime type.
operator ==
implicit operator (2 operators)
operator !=

See Also