PowerTCP Mail for .NET
ContentType Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MimeAttachmentStream Class : ContentType Property




Gets or sets the "Content-Type" header of the message or part.

Syntax

Visual Basic (Declaration) 
Public Property ContentType As String
Visual Basic (Usage)Copy Code
Dim instance As MimeAttachmentStream
Dim value As String
 
instance.ContentType = value
 
value = instance.ContentType
C# 
public string ContentType {get; set;}
Managed Extensions for C++ 
public: __property string* get_ContentType();
public: __property void set_ContentType( 
   string* value
);
C++/CLI 
public:
property String^ ContentType {
   String^ get();
   void set (    String^ value);
}

Property Value

A string representing the Content-Type of the message or part.

Remarks

The "Content-Type" header notifies receiving mail clients of the type of data contained within the MIME part, enabling them to properly handle the data. For example, this value could be "text/plain", signifying that the content is displayable text. As another example, this value could be "multipart/mixed" or "multipart/alternative" signifying that the part contains multiple nested parts.

Note: To construct a multipart message with one part from a single part message, the ContentType can be set to Multipart.

If the part is not a MIME part or the message is not a MIME message, this property returns an empty string.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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