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




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

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute("Replaced by ContentType property")>
Public Property Type As String
Visual Basic (Usage)Copy Code
Dim instance As MessageStream
Dim value As String
 
instance.Type = value
 
value = instance.Type
C# 
[ObsoleteAttribute("Replaced by ContentType property")]
public string Type {get; set;}
Managed Extensions for C++ 
[ObsoleteAttribute("Replaced by ContentType property")]
public: __property string* get_Type();
public: __property void set_Type( 
   string* value
);
C++/CLI 
[ObsoleteAttribute("Replaced by ContentType property")]
public:
property String^ Type {
   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.