MimeType Class

MimeType class

Represents an Internet Media Types

public class MimeType : IEquatable<MimeType>

Constructors

NameDescription
MimeType(String)Initializes a new instance of MIME type based on serialized String value.

Properties

NameDescription
getSubType Gets the sub media type.
getType Gets the media type.

Methods

NameDescription
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.
equals(object)Determines whether the specified Object is equal to the current Object.
getHashCode()Returns a hash code for this instance.
toString()Returns a String that represents Mime type.
operator ==
implicit operator(2 operators)
operator !=

See Also