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.
The value of the "smime-type" parameter.
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 application/pkcs7-mime entities.
The visitor.
Decompress the compressed-data using the specified context.
Optionalctx: SecureMimeContextDecrypt the enveloped-data using the specified context.
Optionalctx: SecureMimeContextImport the certificates contained in the certs-only content.
Verify the signed-data and return the signatures and the unwrapped entity.
Optionalctx: SecureMimeContextStaticcompressCompress the entity using the specified context.
Compress the entity using the specified context.
StaticencryptEncrypt the entity to the specified recipients using the specified context.
Encrypt the entity to the specified recipients using the specified context.
StaticencryptEncrypt the entity to the specified recipient mailboxes (certificates resolved via the store).
Encrypt the entity to the specified recipient mailboxes (certificates resolved via the store).
StaticsignSign the entity (encapsulated signed-data) using the specified context.
Sign the entity (encapsulated signed-data) using the specified context.
StaticsignSign the entity using a signer mailbox and digest algorithm (signer resolved via the store).
Sign the entity using a signer mailbox and digest algorithm, resolved via the default context.
StaticsignSign as multipart/signed and then encrypt the entity using the specified context.
StaticsignSign as multipart/signed and then encrypt using a signer mailbox and recipient mailboxes.
StaticsignSign and encrypt using the default S/MIME context.
StaticsignSign and encrypt to mailboxes using the default S/MIME context.
An S/MIME part with a Content-Type of application/pkcs7-mime.