| 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 ); | |
Property Value
A string representing the Content-Type of the message or part.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.
Target Platforms: Microsoft .NET Framework 2.0
Copy Code