ContentType

ContentType class

Represents a Content-Type header.

public class ContentType

Constructors

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

Properties

Name Description
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

Name Description
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