PowerTCP Mail for .NET
ContentType Property




Gets or sets the "Content-Type" header field for the part.
Syntax
Public Property ContentType As ContentType
Dim instance As Part
Dim value As ContentType
 
instance.ContentType = value
 
value = instance.ContentType
public ContentType ContentType {get; set;}
public: __property ContentType* get_ContentType();
public: __property void set_ContentType( 
   ContentType* value
);
public:
property ContentType^ ContentType {
   ContentType^ get();
   void set (    ContentType^ value);
}

Property Value

Represents the Content-Type header line of the message or part.
Remarks

The "Content-Type" header field informs us of the type of data contained within the MIME part. For example, if ContentType.MediaType is "text/plain", during decoding we create a Textpart with Content exposing the decoded content as a string.

A null value indicates this header field is not present.

See Also

Reference

Part Class
Part Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic