ReadonlyheadersThe headers belonging to this MIME entity.
ReadonlycontentThe entity's Content-Type value.
Protected ReadonlylazyThe MIME content for this part.
C#: internal IsDisposed (exposed publicly; upstream tests read it via InternalsVisibleTo).
Gets or sets the Content-Disposition header value.
Sets the absolute Content-Base URI.
Sets the Content-Location URI.
Sets the Content-Id header value.
Gets or sets whether this entity is marked as an attachment.
Setting this updates the Content-Disposition disposition between
attachment and inline.
Sets whether this entity is marked as an attachment.
Sets the Content-Description header value.
Sets the Content-Duration value in seconds.
Sets the Content-MD5 checksum value.
Gets or sets the Content-Transfer-Encoding value.
Gets or sets the file name from Content-Disposition or Content-Type.
Sets the file name in Content-Disposition and Content-Type.
Gets the best matching text format for this part.
Gets whether this part is text/enriched or text/richtext.
Gets whether this part is flowed plain text.
Gets whether this part is HTML text.
Gets whether this part is plain text.
Gets whether this part is rich text.
Gets or sets the decoded text using UTF-8 when setting.
Sets the text content using UTF-8.
Serializes the MIME entity to a string.
The serialized MIME entity.
ProtectedcheckProtectedtryProtectedremoveProtectedsetProtectedsetStaticloadC#: MimeEntity.Load. Parses a MIME entity from a stream (or byte buffer), or — given an explicit Content-Type — from a bare content stream (the HttpWebResponse use-case, where headers are parsed separately). Parse errors are returned as an Err (C#: FormatException) per the port's Result convention.
Optionalpersistent: booleanOptionaloptions: ParserOptionsC#: MimeEntity.Load. Parses a MIME entity from a stream (or byte buffer), or — given an explicit Content-Type — from a bare content stream (the HttpWebResponse use-case, where headers are parsed separately). Parse errors are returned as an Err (C#: FormatException) per the port's Result convention.
Optionaloptions: ParserOptionsC#: MimeEntity.Load. Parses a MIME entity from a stream (or byte buffer), or — given an explicit Content-Type — from a bare content stream (the HttpWebResponse use-case, where headers are parsed separately). Parse errors are returned as an Err (C#: FormatException) per the port's Result convention.
Optionaloptions: ParserOptionsCalculates the best content-transfer-encoding for this part.
The encoding constraint.
The maximum line length.
The best content-transfer-encoding.
Verifies the Content-MD5 checksum against the decoded content.
true if the checksum matches; otherwise false.
Writes the MIME part to a stream.
Formatting options.
The destination stream.
Writes the MIME part to a stream.
Formatting options.
The destination stream.
Whether to omit the part headers.
ProtectedonReleases the content and base entity resources.
Dispatches to the visitor method for text parts.
The visitor.
Tests whether this part matches a text format.
The format to test.
true if this part matches format; otherwise false.
Attempts to detect the charset encoding used by the content.
The detected encoding and confidence, or an undefined confidence.
Gets the decoded text.
The decoded text, or the decoded text with the detected encoding.
Gets the decoded text.
The encoding to use.
The decoded text, or the decoded text with the detected encoding.
Sets the text content using the specified charset.
The charset name or encoding.
The text content.
A MIME part containing text content.
TextPart handles plain text, flowed text, HTML, enriched text, and rich text bodies and decodes their content using the declared or detected charset.