System 2.0.0.0 4.0.0.0 System.Object

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 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.

Represents a MIME protocol Content-Type header.

- Constructor
  2.0.0.0
  4.0.0.0

  This constructor initializes the property to "application/octet-stream".

  Initializes a new default instance of the class.

- Constructor
  2.0.0.0
  4.0.0.0

  The syntax of the string is described in RFC 2045 Section 5.1 available at http://www.ietf.org.

  Initializes a new instance of the class using the specified string.

  A , for example, "text/plain; charset=us-ascii", that contains the MIME media type, subtype, and optional parameters.
- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  In the following example of a Content-Type header, the value of the parameter is "-----boundary---0".

  content-type: multipart/mixed; boundary=-----boundary---0

  Set this property to null or to remove the boundary information from the header.

  The syntax of the Content-Type header is described in RFC 2045 Section 5.1. An in-depth discussion of the boundary parameter is contained in RFC 2046 Section 5.1.1. These RFCs are available at http://www.ietf.org.

  Gets or sets the value of the boundary parameter included in the Content-Type header represented by this instance.

- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  In the following example of a Content-Type header, the value of the property is "us-ascii".

  content-type: application/x-myType; charset=us-ascii

  Set this property to null or to remove the charset information from the header.

  A grammar that details the syntax of the Content-Type header is described in RFC 2045 Section 5.1. An in-depth discussion of the charset parameter is contained in RFC 2046 Section 4.1.2. These RFCs are available at http://www.ietf.org.

  Gets or sets the value of the charset parameter included in the Content-Type header represented by this instance.

- Method
  2.0.0.0
  4.0.0.0
  System.Boolean `` To be added. To be added.

  Determines whether the content-type header of the specified object is equal to the content-type header of this object.

  true if the content-type headers are the same; otherwise false.

- Method
  2.0.0.0
  4.0.0.0
  System.Int32 To be added.

  Determines the hash code of the specified object

  An integer hash value.

- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  In the following example of a Content-Type header, the value of the property is "application/x-myType".

  content-type: application/x-myType; name=data.xyz

  Set this property to null or to remove the name information from the header.

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

  Gets or sets the media type value included in the Content-Type header represented by this instance.

- Property
  2.0.0.0
  4.0.0.0
  System.String To be added.

  In the following example of a Content-Type header, the value of the property is "data.xyz".

  content-type: application/x-myType; name=data.xyz

  A grammar that details the syntax of the Content-Type header is described in RFC 2045 Section 5.1, available at http://www.ietf.org.

  When specifying content for a as a or , you can use to set the name of the file that stores the content on the recipient's system.

  Gets or sets the value of the name parameter included in the Content-Type header represented by this instance.

- Property
  2.0.0.0
  4.0.0.0
  System.Collections.Specialized.StringDictionary To be added.

  You can set the parameters by specifying the entire Content-Header value when constructing a object or you can add parameters to the returned by the property.

  When adding a parameter entry to the dictionary, the name of the parameter is the entry's key and the value of the parameter is the entry's value.

  A grammar that details the syntax of the Content-Type header is described in RFC 2045 Section 5.1. RFC 2046 provides detailed information on MIME media types and their associated parameters. These RFCs are available at http://www.ietf.org.

  Gets the dictionary that contains the parameters included in the Content-Type header represented by this instance.

- Method
  2.0.0.0
  4.0.0.0
  System.String

  The value of the method contains the string used to create this , if one was specified and no property values have been changed. If no string was specified, or one or more property values have changed since this was created, the value of is a string in the format of a Content-Type header that is composed using the current property values. The string does not include the "Content-type:" prefix.

  The syntax of the Content-Type header is described in RFC 2045 Section 5.1, available at http://www.ietf.org.

  Returns a string representation of this object.

  A that contains the current settings for this .