Share via


SPEmailAttachment.ContentType property

Gets the Multipurpose Internet Mail Extensions (MIME) content type of the attachment.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property ContentType As String
    Get
'Usage
Dim instance As SPEmailAttachment
Dim value As String

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

Property value

Type: System.String
A string that contains the content type.

See also

Reference

SPEmailAttachment class

SPEmailAttachment members

Microsoft.SharePoint.Utilities namespace