The MimeEntity type exposes the following members.

Constructors

  NameDescription
Public methodMimeEntity
Initializes a new instance of MimeEntity.

Methods

  NameDescription
Public methodClone
Creates a copy of this entity.
Public methodDecrypt
Decrypts the contents of an enveloped entity. This method is only intended for entities with enveloped content.
Public methodEncrypt
Encrypts the contents of an enveloped entity. This method is only intended for entities with enveloped content.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetContentStream()()()()
Returns the read-only stream representing a content of this entity.
Public methodGetContentStream(Boolean)
Returns the stream representing a content of this entity.
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetRawContentStream
Returns the read-only stream representing a raw content of this entity. Only available for messages that were parsed with MimeOptions.KeepRawEntityBody flag. You probably need to use GetContentStream(Boolean) instead.
Public methodGetSignatureEntity
Gets the signature entity if available. This can return this entity for signatures with inlined content.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad(Stream)
Loads the MIME entity from the specified stream.
Public methodLoad(String)
Loads the MIME entity from the specified file.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnBrokenHeader
Raises the UnparsableHeader event.
Public methodSave(Stream)
Saves the MIME entity to the specified stream.
Public methodSave(String)
Saves the MIME entity to the specified file.
Public methodSetContent(Stream)
Sets the content of this entity to data read from the specified stream.
Public methodSetContent(String)
Sets the content of this entity to the specified text.
Public methodSetContent(MimeEntity)
Sets the inner message of this entity to the specified message.
Public methodSetContent(Stream, String)
Sets the content of this entity to data read from the specified stream and sets media type and file name.
Public methodSetContent(String, String)
Sets the content of this entity to the specified text and media type.
Public methodSetContent(Stream, String, String)
Sets the content of this entity to data read from the specified stream and sets media type and file name.
Public methodSetContent(String, String, Encoding)
Sets the content of this entity to the specified text, media type and character set.
Public methodSetContent(Stream, String, String, TransferEncoding)
Sets the content of this entity to data read from the specified stream and sets media type, file name and transfer encoding.
Public methodSetContent(String, String, Encoding, TransferEncoding)
Sets the content of this entity to the specified text, media type and character set.
Public methodSetContentFromFile(String)
Sets the content of this entity to data read from the specified file.
Public methodSetContentFromFile(String, String)
Sets the content of this entity to data read from the specified file and sets file name.
Public methodSetContentFromFile(String, String, String)
Sets the content of this entity to data read from the specified file and sets media type and file name.
Public methodSetContentFromFile(String, String, String, TransferEncoding)
Sets the content of this entity to data read from the specified file and sets media type, file name and transfer encoding.
Public methodSetEnvelopedContent(MimeEntity, array<Certificate>[]()[][])
Sets the content of this entity to the specified enveloped entity.
Public methodSetEnvelopedContent(MimeEntity, String, array<Certificate>[]()[][])
Sets the content of this entity to the specified enveloped entity.
Public methodSetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, EncryptionParameters, array<Certificate>[]()[][])
Sets the content of this entity to the specified enveloped entity.
Public methodSetEnvelopedContent(MimeEntity, String, EncryptionParameters, array<Certificate>[]()[][])
Sets the content of this entity to the specified enveloped entity.
Public methodSetEnvelopedContent(MimeEntity, String, Int32, array<Certificate>[]()[][]) Obsolete.
Public methodSetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, Nullable<(Of <<'(Int32>)>>), EncryptionParameters, array<Certificate>[]()[][])
Sets the content of this entity to the specified enveloped entity.
Public methodSetSignedContent(MimeEntity, array<Certificate>[]()[][])
Sets the content of this entity to the specified signed entity.
Public methodSetSignedContent(MimeEntity, MimeSignatureStyle, array<Certificate>[]()[][])
Sets the content of this entity to the specified signed content.
Public methodSetSignedContent(MimeEntity, SignatureParameters, array<Certificate>[]()[][])
Sets the content of this entity to the specified signed content.
Public methodSetSignedContent(MimeEntity, MimeSignatureStyle, SignatureHashAlgorithm, array<Certificate>[]()[][])
Sets the content of this entity to the specified signed content.
Public methodSetSignedContent(MimeEntity, MimeSignatureStyle, SignatureParameters, array<Certificate>[]()[][])
Sets the content of this entity to the specified signed content.
Public methodSign
Creates signatures for all signers that do not have one yet. This method is only intended for entities with signed content.
Public methodToMessage
Coverts the MimeEntity into a MimeMessage.
Public methodToStream
Returns a read-only stream that can be used to read the raw MIME message content. Copying all the content into another stream is identical to Save(Stream) method.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodValidateSignature()()()()
Validates all digital signatures on this CMS/PKCS #7 signed message and validates all the signers' certificates. This method is only intended for entities with signed content.
Public methodValidateSignature(Boolean, ValidationOptions)
Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, no signers' certificates are not validated, and the specified validation options are taken into account. This method is only intended for entities with signed content.
Public methodValidateSignature(Boolean, ValidationOptions, CertificateChainEngine)
Validates all digital signatures on this CMS/PKCS #7 signed message. Optionally, no signers' certificates are not validated, and the specified validation options are taken into account. This method is only intended for entities with signed content.

Properties

  NameDescription
Public propertyCertificateFinder
Gets or sets the ICertificateFinder to be used to find certificates used to encrypt or sign the entity.
Public propertyContentDescription
Gets or sets the content description of this entity.
Public propertyContentDisposition
Gets or sets the content disposition of this entity.
Public propertyContentId
Gets or sets the content ID of this entity.
Public propertyContentLocation
Gets or sets the content location of this entity.
Public propertyContentMessage
Gets the inner message of a 'message/rfc822' entity.
Public propertyContentString
Gets the content string of this entity.
Public propertyContentTransferEncoding
Gets or sets the content transfer encoding of this entity.
Public propertyContentType
Gets or sets the content type of this entity.
Public propertyDefaultCharset
Gets or sets the default charset for MIME body and headers.
Public propertyEnvelopedContentInfo
Gets the EnvelopedData object that contains information about enveloped (encrypted) content. This property is only set for entities with enveloped content.
Public propertyEpilogue
Gets or sets the epilogue of this multipart entity.
Public propertyHeaders
Gets the list of headers of this entity.
Public propertyCharset
Gets the charset (Encoding) of the content of this entity.
Public propertyIsMultipart
Determines whether the entity is a multipart entity.
Public propertyKind
Gets the type of the entity.
Public propertyName
Gets or sets the suggested file name of this entity, if it is present.
Public propertyOptions
Gets or sets various options for MIME parser and writer.
Public propertyParent
Gets or sets the parent of this entity.
Public propertyParts
Gets the list of child parts of this entity.
Public propertyPreamble
Gets or sets the preamble of this multipart entity.
Public propertyReadOnly
Gets or sets a value indicating whether the entity is read-only.
Public propertySignatureStyle
Gets or sets the signature style of a signed entity container. This property is only intended for entities with signed content.
Public propertySignedContentInfo
Gets the SignedData object that contains information about signed content. This property is only set for entities with signed content.
Public propertySilent
Gets or sets a value indicating whether cryptographic providers are allowed to display any user interface (UI) when working with private keys.
Public propertyTransferEncoding
Gets or sets the TransferEncoding of the content of this entity.

Events

  NameDescription
Public eventParsingHeader
Occurs when a MIME header is to be parsed.
Public eventUnparsableHeader
Occurs when an unparsable header is encountered while parsing a MIME message.

Explicit Interface Implementations

See Also