System.Net.Mime.ContentType Class

Represents a MIME protocol Content-Type header.

See Also: ContentType Members

Syntax

public class ContentType

Remarks

The information in the System.Net.Mime.ContentType class is used to describe the data contained in an e-mail message in such a way that software that displays e-mail can present the content in an appropriate manner. System.Net.Mime.ContentType is used with the System.Net.Mail.Attachment class to specify the type of content in the attachment.

The syntax of the Content-Type header is described in RFC 2045 Section 5.1. RFC 2046 provides detailed information about MIME media types and their parameters. These RFCs are available at tp://www.ietf.org/.

Requirements

Namespace: System.Net.Mime
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0