Creates a new TnefPart from parser constructor arguments.
information used by the constructor.
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.
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 specific visit method for this MIME entity.
the visitor.
Convert the TNEF content into a MimeMessage.
TNEF data often contains properties that map to MimeMessage headers and file attachments that are mapped to MIME parts.
a message representing the TNEF data in MIME format.
Extract the embedded attachments from the TNEF data.
Parses the TNEF data and extracts all embedded file attachments.
the attachments.
A MIME part containing Microsoft TNEF data.
Represents an
application/ms-tneforapplication/vnd.ms-tnefpart. TNEF (Transport Neutral Encapsulation Format) attachments are most often sent by Microsoft Outlook clients.