AttachmentType.ContentType Property
The ContentType property gets or sets a value that describes the Multipurpose Internet Mail Extensions (MIME) type of the attachment content.
Namespace: ExchangeWebServices
Assembly: EWS (in ews.dll)
Syntax
'Declaration
Public Property ContentType As String
public string ContentType { get; set; }
public:
property String^ ContentType {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_ContentType ()
/** @property */
public void set_ContentType (String value)
public function get ContentType () : String
public function set ContentType (value : String)
Property Value
The ContentType property returns a string value that represents the content type of the attachment.
Remarks
The following are some examples of strings that you can set on this property:
text/plain
text/xml
application/octet-stream
multipart/mixed
image/jpeg
Note
This is not an exclusive list.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)
See Also