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
    Get
    Set
'Usage
Dim instance As AttachmentType
Dim value As String

value = instance.ContentType

instance.ContentType = value
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.

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.