The ContentType type exposes the following members.

Constructors

  NameDescription
Public methodContentType
Creates new content type instance.

Methods

  NameDescription
Public methodEquals
Compares this instance to another ContentType instance.
(Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns hash code for this instance.
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse
Parses specified string and creates new ContentType object.
Public methodToString
Returns MimeTypeName/MimeSubtypeName string.
(Overrides Object..::..ToString()()()().)

Operators

  NameDescription
Public operatorStatic memberEquality
Compares two ContentType instances.
Public operatorStatic memberInequality
Compares two ContentType instances.

Fields

  NameDescription
Public fieldStatic memberApplicationIcs
Application/Ics content type.
Public fieldStatic memberApplicationMsTnef
Application/Ms-Tnef content type.
Public fieldStatic memberApplicationMsWord
Application/MsWord content type.
Public fieldStatic memberApplicationOctetStream
application/octet-stream content type.
Public fieldStatic memberApplicationPdf
Application/Pdf content type.
Public fieldStatic memberApplicationPkcs7Mime
Application/pkcs7-mime content type.
Public fieldStatic memberApplicationPkcs7Signature
Application/pkcs7-signature content type.
Public fieldStatic memberApplicationXPkcs7Mime
Application/x-pkcs7-mime content type.
Public fieldStatic memberApplicationXPkcs7Signature
Application/x-pkcs7-signature content type.
Public fieldStatic memberImageBmp
Image/Bmp content type.
Public fieldStatic memberImageGif
Image/Gif content type.
Public fieldStatic memberImageJpeg
Image/Jpeg content type.
Public fieldStatic memberImagePng
Image/Png content type.
Public fieldStatic memberImageTiff
Image/Tiff content type.
Public fieldStatic memberMessageDeliveryStatus
Message/Delivery-Status content type.
Public fieldStatic memberMessageDispositionNotification
Message/disposition-notification content type.
Public fieldStatic memberMessageRfc822
Message/rfc822 content type.
Public fieldStatic memberMessageXDeliveryStatus
Message/xdelivery-status content type.
Public fieldStatic memberMultipartAlternative
Multipart/Alternative content type.
Public fieldStatic memberMultipartMixed
Multipart/Mixed content type.
Public fieldStatic memberMultipartRelated
Multipart/Related content type.
Public fieldStatic memberMultipartReport
Multipart/Report content type.
Public fieldStatic memberMultipartSigned
Multipart/Signed content type.
Public fieldStatic memberTextCalendar
Text/Calendar content type.
Public fieldStatic memberTextHtml
Text/Html content type.
Public fieldStatic memberTextPlain
Text/Plain content type.
Public fieldStatic memberTextRfc822Headers
Text/rfc822-headers content type.
Public fieldStatic memberTextXml
Text/Xml content type.

Properties

  NameDescription
Public propertyMimeSubtype
Subtype name of content. Always in lower case. May be null.
Public propertyMimeType
Type name of content. Always in lower case. May be null.

See Also