Initializes a new multipart/alternative entity.
Initialization arguments: headers and MIME entities.
ReadonlyheadersThe headers belonging to this MIME entity.
ReadonlycontentThe entity's Content-Type value.
Protected ReadonlylazyRaw boundary bytes preserved from parsing, one entry per child.
Raw preamble bytes preserved from parsing.
Raw closing boundary bytes preserved from parsing.
Raw epilogue bytes preserved from parsing.
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.
Gets the plain text body, if present.
Gets the plain text body, if present.
Gets the HTML body, if present.
Gets the HTML body, if present.
Gets or sets the boundary parameter.
Sets the boundary parameter.
Gets or sets the boundary parameter.
Sets the boundary parameter.
Gets or sets the multipart preamble.
Sets the multipart preamble.
Gets or sets the multipart preamble.
Sets the multipart preamble.
Gets or sets the multipart epilogue.
Sets the multipart epilogue.
Gets or sets the multipart epilogue.
Sets the multipart epilogue.
Gets whether an end boundary should be written.
Gets whether an end boundary should be written.
Gets the number of child MIME entities.
Gets the number of child MIME entities.
Gets whether the collection is read-only.
Gets whether the collection is read-only.
Serializes the MIME entity to a string.
The serialized MIME entity.
ProtectedcheckProtectedtryProtectedremoveProtectedsetProtectedsetProtectedonStaticloadC#: 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: ParserOptionsDispatches to the visitor method for multipart/alternative entities.
The visitor.
Gets the text body in the preferred format.
The preferred text format.
The body text, or null if not available.
Finds the preferred text part for the requested format.
The preferred text format.
The matching text part, or null.
StaticgetGets decoded display text from a text part.
The text part.
The decoded text, with flowed text unwrapped when applicable.
Gets the child entity at the specified index.
The zero-based child index.
The child entity.
Replaces the child entity at the specified index.
The zero-based child index.
The replacement entity.
Adds a child entity with its raw boundary as parsed.
The entity to add.
The raw boundary bytes.
Removes all child entities.
Whether to dispose removed children.
Tests whether a child entity is present.
The entity to locate.
true if the entity is present; otherwise false.
Copies child entities into an array.
The destination array.
The starting index in array.
Removes a child MIME entity.
The entity to remove.
true if the entity was removed; otherwise false.
Gets the index of a child entity.
The entity to locate.
The zero-based index, or -1 if not found.
Inserts a child entity at the specified index.
The insertion index.
The entity to insert.
Removes the child entity at the specified index.
The zero-based child index.
StaticfoldFolds preamble or epilogue text for serialization.
Formatting options.
The text to fold.
Whether the text is an epilogue.
Folded text.
Prepares each child entity for transport.
The encoding constraint.
The maximum encoded line length.
Writes the multipart entity to a stream.
Optionalb: StreamWhether to omit the multipart headers.
Returns an iterator over the child MIME entities.
Disposes the multipart and all child entities.
A multipart/alternative MIME entity.
The child parts are ordered from least faithful to most faithful representation of the same content.