Represents a MIME protocol Content-Type header.
Assembly: System (in System.dll)
Thetype exposes the following members.
|Boundary||Gets or sets the value of the boundary parameter included in the Content-Type header represented by this instance.|
|CharSet||Gets or sets the value of the charset parameter included in the Content-Type header represented by this instance.|
|MediaType||Gets or sets the media type value included in the Content-Type header represented by this instance.|
|Name||Gets or sets the value of the name parameter included in the Content-Type header represented by this instance.|
|Parameters||Gets the dictionary that contains the parameters included in the Content-Type header represented by this instance.|
|Equals||Determines whether the content-type header of the specified object is equal to the content-type header of this object. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Determines the hash code of the specified object (Overrides Object.GetHashCode.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string representation of this object. (Overrides Object.ToString.)|
The information in the 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. is used with the 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 http://www.ietf.org.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.