System.Net.Mime 命名空间

System.Net.Mime 命名空间包含用于表示 Multipurpose Internet Mail Exchange (MIME) 标头的类型。 The System.Net.Mime namespace holds types that are used to represent Multipurpose Internet Mail Exchange (MIME) headers. 这些类型在使用 SmtpClient 类发送电子邮件时与 System.Net.Mail 命名空间中的类型一起用于指定 Content-Type、Content-Disposition 和 Content-transfer-Encoding 标头。 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 email.

ContentDisposition

表示 MIME 协议 Content-Disposition 标头。Represents a MIME protocol Content-Disposition header.

ContentType

表示 MIME 协议内容类型标题。Represents a MIME protocol Content-Type header.

DispositionTypeNames

提供用于指定电子邮件附件的处置类型的字符串。Supplies the strings used to specify the disposition type for an email attachment.

MediaTypeNames

指定电子邮件附件的媒体类型信息。Specifies the media type information for an email message attachment.

MediaTypeNames.Application

指定电子邮件附件中应用程序数据的类型。Specifies the kind of application data in an email message attachment.

MediaTypeNames.Image

指定电子邮件附件中的图像数据类型。Specifies the type of image data in an email message attachment.

MediaTypeNames.Text

指定电子邮件附件中文本数据的类型。Specifies the type of text data in an email message attachment.

枚举

TransferEncoding

指定电子邮件附件的 Content-Transfer-Encoding 标头信息。Specifies the Content-Transfer-Encoding header information for an email message attachment.

注解

表示 MIME 数据Attachment类。MIME data is represented by the Attachment class.