Initializes a new multipart/related 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 or sets the root document of the multipart/related entity.
Sets the root document of the multipart/related entity.
Gets or sets the root document of the multipart/related entity.
Sets the root document of the multipart/related entity.
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/related entities.
The visitor.
Finds the preferred text part in the root document.
The preferred text format.
The matching text part, or null.
Tests whether a linked resource URI exists.
The resource URI.
true if the URI resolves to a child entity; otherwise false.
Gets the index of the entity referenced by a URI.
The resource URI.
The zero-based index, or -1 if not found.
Opens the content stream for a linked resource URI.
The resource URI.
The decoded resource stream.
Opens a linked resource and returns stream metadata.
The resource URI.
The decoded stream, MIME type, and charset.
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/related MIME entity.
A multipart/related entity contains inter-related MIME parts that typically reference each other via Content-Id or Content-Location URIs.