Share via


Attachment.ContentType property

The ContentType property gets a value that specifies the Multipurpose Internet Mail Extensions (MIME) content type of the attachment.

Namespace:  Microsoft.Exchange.Data.Transport.Email
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public Property ContentType As String
    Get
    Set
'Usage
Dim instance As Attachment
Dim value As String

value = instance.ContentType

instance.ContentType = value
public string ContentType { get; set; }

Property value

Type: System.String

See also

Reference

Attachment class

Attachment members

Microsoft.Exchange.Data.Transport.Email namespace