PowerTCP Mail for .NET
ContentType Enumeration
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace : ContentType Enumeration




Enumerates values which specify the nature of the data of a MIME part.

Syntax

Visual Basic (Declaration) 
Public Enum ContentType 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As ContentType
C# 
public enum ContentType : System.Enum 
Managed Extensions for C++ 
__value public enum ContentType : public System.Enum 
C++/CLI 
public enum class ContentType : public System.Enum 

Members

MemberDescription
ApplicationMacBinhex40 Sets content-type to "application/mac-binhex40". Specifies that the data is encoded with the BinHex encoding scheme.
ApplicationMicrosoftGroup Sets content-type to "application/microsoft-group".
ApplicationMSWord Sets content-type to "application/msword". Specifies that the data is a Microsoft Word document.
ApplicationOctetStream Sets content-type to "applicationoctetstream". Specifies that the data is unrecognized application content.
ApplicationPdf Sets content-type to "application/pdf". Specifies that the data is an Adobe Portable Document Format file.
ApplicationPkcs7Enveloped Sets content-type to "application/x-pkcs7-mime; smime-type=enveloped-data". Specifies that the data is an encrypted body part.
ApplicationPkcs7Signature Sets content-type to "application/pkcs7-signature". Specifies that the data is a signature.
ApplicationPkcs7Signed Sets content-type to "application/pkcs7-signature". Specifies that the data is a signed body part.
ApplicationPostscript Sets content-type to "application/postscript". Specifies that the data is an Adobe PostScript file.
ApplicationVndmsExcell Sets content-type to "application/vnd.ms-excel". Specifies that the data is a Microsoft Excel file.
ApplicationVndmsPowerpoint Sets content-type to "application/vnd.ms-powerpoint". Specifies that the data is a Microsoft PowerPoint file.
ApplicationWordperfect51 Sets content-type to "application/wordperfect5.1". Specifies that the data is a Microsoft Wordperfect file.
ApplicationXgzip Sets content-type to "application/x-gzip". Specifies that the data is gzip encoded.
ApplicationXMSDownload Sets content-type to "application/x-msdownload". Causes a browser to show "Save As" box on a download.
ApplicationZip Sets content-type to "application/zip". Specifies that the data is zip encoded.
AudioMicrosoftWav Sets content-type to "audio/microsoft-wav". Specifies that the data is a wav audio file.
Audiovndqcelp Sets content-type to "audio/vnd.qcelp". Specifies that the data is voice audio format.
AutoDetect Automatically sets the content-type to the default type for this type of data.
ImageGif Sets content-type to "image/gif". Specifies that the data is an image of GIF format.
ImageJpeg Sets content-type to "image/jpeg". Specifies that the data is an image of JPEG format.
ImageTiff Sets content-type to "image/tiff". Specifies that the data is an image of TIFF format.
MessageRfc822 Sets content-type to "rfc822". Specifies that the data is an RFC 822 message.
MultiPartAlternative Sets content-type to "multipart/alternative". Often used to sent multiple types when the receiver's capabilities are not known.
MultiPartMixed Sets content-type to "multipart/mixed". Specifies that the data is an unrelated, unstructured set of objects.
MultipartRelated Sets content-type to "multipart/related". Specifies that the message's parts are inter-related, and the message as a whole cannot be displayed correctly by treating each part on an individual basis.
None Sets content-type. If using this value, content-encoding must also be none.
TextCss Sets content-type to "text/css". Specifies that the data is a cascading style sheet.
TextHtml Sets content-type to "text/html". Specifies that the data is HTML.
TextPlain Sets content-type to "text/plain". Specifies that the data is human-readable text.
TextXml Sets content-type to "text/xml". Specifies that the data is XML.
VideoMpeg Sets content-type to "video/mpeg". Specifies that the data is video in MPEG format.
VideoQuicktime Sets content-type to "video/quicktime". Specifies that the data is video in QuickTime format.

Remarks

The content-type value is specified in the format type/subtype. For example, if the content type is "image/gif" any agent will be able to tell that the data is a "image" of type "gif", and can handle it appropriately. An another example, a mail reader may search for a content-type "text/plain" for human-readable text that the application can display to the user.

There are 7 main types defined:

Type Description
Application Used for all data that does not fit into the other categories. Signifies that the data is to be processed by an application program.
Audio The data is some audio file.
Image Signifies the data is an image, or graphic.
Message The data is a mail message.
Multipart The data consists of multiple parts, which each may have any content-type in this table.
Text The data is some form of textual data.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Dart.PowerTCP.Mail.ContentType

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.