This documentation is archived and is not being maintained.

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)

public string ContentType { get; set; }

Property Value

Type: System.String
The ContentType property returns a string value that represents the content type of the attachment.

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


This is not an exclusive list.