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 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: ParserOptionsGets 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.
Finds the preferred text part for the requested format.
The text format to find.
The matching text part, or null.
StaticfoldFolds preamble or epilogue text for serialization.
Formatting options.
The text to fold.
Whether the text is an epilogue.
Folded text.
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.
Dispatches to the visitor method for multipart/encrypted entities.
The visitor.
The children are already encrypted, so preparing them would corrupt the content.
StaticencryptEncrypt the entity to the given recipients.
Optionalcipher: EncryptionAlgorithmStaticsignSign and encrypt the entity in one pass.
Optionalcipher: EncryptionAlgorithmDecrypt the multipart/encrypted part, verifying any embedded signatures.
A multipart/encrypted MIME part (PGP/MIME, RFC 3156).