The ContentType type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ContentType |
Initializes a new instance of ContentType header value
with the specified media type.
|
Methods
Name | Description | |
---|---|---|
Clone |
Creates a copy of the header.
| |
Encode |
Writes an encoded header value into a TextWriter.
| |
Equals |
Determines whether the specified ContentType is equal to the current ContentType.
(Overrides Object..::..Equals(Object).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type, suitable
for use in hashing algorithms and data structures like a hash table.
(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 |
Converts the value of this header to its String representation.
(Overrides Object..::..ToString()()()().) |
Properties
Name | Description | |
---|---|---|
Boundary |
Gets or sets the 'boundary' parameter of this content type.
| |
Encoding |
Gets the 'charset' of this content type to Encoding.
| |
CharSet |
Gets or sets the 'charset' parameter of this content type.
| |
MediaType |
Gets the internet media type in the format of 'type/subtype'.
| |
Parameters |
Gets the list of parameters of this content type.
|