Class ContentTypeParser
Parses a Content-Type header value into a ContentType object.
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime.Parsing
Assembly: DRIT.Mail.dll
Syntax
public static class ContentTypeParser
Methods
View SourceParse(string)
Parses the specified Content-Type header value.
Declaration
public static ContentType Parse(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value to process. |
Returns
| Type | Description |
|---|---|
| ContentType |
ParseWithRfc2231(string)
Parses a Content-Type header value, applying RFC 2231 parameter decoding to extract decoded filenames and other parameters.
Declaration
public static ContentType ParseWithRfc2231(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value to process. |
Returns
| Type | Description |
|---|---|
| ContentType |