Represents a Content-Type field.
Inheritance Hierarchy
NI.Email.Mime.Field MimeField
NI.Email.Mime.Field ContentTypeField
Namespace: NI.Email.Mime.Field
Assembly: NI.Email.Mime (in NI.Email.Mime.dll) Version: 1.8.5168.22709
Syntax
The ContentTypeField type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddParameter | ||
ChangeParameter | ||
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateBoundary | ||
GetCharset |
Gets the value of the charset parameter if set for the
given field. Returns the default us-ascii if not set or if
f is null.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMimeType |
Gets the MIME type defined in the child's
Content-Type field or derives a MIME type from the parent
if child is null or hasn't got a MIME type value set.
If child's MIME type is multipart but no boundary
has been set the MIME type of child will be derived from
the parent.
| |
GetParameter |
Gets the value of a parameter. Parameter names are case-insensitive.
| |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
IsMimeType |
Determines if the MIME type of this field matches the given one.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Parse(String, String, IDictionary) | ||
Parse(String, String, IDictionary, Boolean) | ||
ParseBody | (Overrides MimeField ParseBody(String).) | |
RemoveParameter | ||
ToString | (Overrides MimeField ToString .) |
Fields
Name | Description | |
---|---|---|
body | (Inherited from MimeField.) | |
name | (Inherited from MimeField.) | |
ParamBoundary |
The name of the boundary parameter.
| |
ParamCharset |
The name of the charset parameter.
| |
raw | (Inherited from MimeField.) | |
TypeMessageRFC822 |
The message/rfc822 MIME type.
| |
TypeMultipartAlternative |
The multipart/alternative MIME type.
| |
TypeMultipartDigest |
The multipart/digest MIME type.
| |
TypeMultipartMixed |
The multipart/mixed MIME type.
| |
TypeMultipartPrefix |
The prefix of all multipart MIME types.
| |
TypeTextHtml |
The text/html MIME type.
| |
TypeTextPlain |
The text/plain MIME type.
|
Properties
Name | Description | |
---|---|---|
Body |
Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field
body string.
(Inherited from MimeField.) | |
Boundary |
Gets the value of the boundary parameter if set.
| |
Charset |
Gets the value of the charset parameter if set.
| |
IsContentType |
Determines if this is a Content-Type field.
(Inherited from MimeField.) | |
IsFrom |
Determines if this is a From field.
(Inherited from MimeField.) | |
IsMultipart |
Determines if the MIME type of this field is multipart/*.
| |
IsSubject |
Determines if this is a Subject field.
(Inherited from MimeField.) | |
IsTo |
Determines if this is a To field.
(Inherited from MimeField.) | |
MainValue | ||
MimeType |
Gets the MIME type defined in this Content-Type field.
| |
Name |
Gets the name of the field (Subject,
From, etc).
(Inherited from MimeField.) | |
Parameters |
Gets all parameters.
| |
ParseException |
Gets the exception that was raised during parsing of
the field value, if any; otherwise, null.
| |
Raw |
Gets the original raw field string.
(Inherited from MimeField.) |
See Also