Class ContentType

ContentType class

Represents a Content-Type header.

public class ContentType

Constructors

NameDescription
ContentType()Initializes a new instance of the ContentType class.
ContentType(string)Initializes a new instance of the ContentType class.

Properties

NameDescription
Boundary { get; set; }Gets or sets the value of the boundary parameter included in the Content-Type header.
CharSet { get; set; }Gets or sets the value of the charset parameter.
MediaType { get; set; }Gets or sets the internet media type.
Name { get; set; }Gets or sets the value of the name parameter.
Parameters { get; }Gets the dictionary that contains the parameters.

Methods

NameDescription
override Equals(object)Determines whether the specified Object is equal to this instance.
override GetHashCode()Returns a hash code for this instance.
override ToString()Returns a String that represents this instance.

See Also