System.Net.Mime Namespace

The System.Net.Mime namespace holds types that are used to represent Multipurpose Internet Mail Exchange (MIME) headers. These types are used with the types in the System.Net.Mail namespace to specify Content-Type, Content-Disposition and Content-transfer-Encoding headers when using the SmtpClient class to send e-mail.

Remarks

MIME data is represented by the Attachment class.

Classes

TypeReason
ContentDisposition

Represents a MIME protocol Content-Disposition header.

ContentType

Represents a MIME protocol Content-Type header.

DispositionTypeNames

Supplies the strings used to specify the disposition type for an e-mail attachment.

MediaTypeNames

Specifies the media type information for an e-mail message attachment.

MediaTypeNames+Application
MediaTypeNames+Image
MediaTypeNames+Text
TransferEncoding

Specifies the Content-Transfer-Encoding header information for an e-mail message attachment.