MimeEntity Class
Namespace: Rebex.Mime
Assembly: Rebex.Mail.dll (version 7.0.9147)
A MIME entity.
Syntax
public class MimeEntity
Inherited Members
Remarks
Use Mime
Constructors
Name | Description |
---|---|
Mime |
Initializes a new instance of Mime |
Properties
Name | Description |
---|---|
Certificate |
Gets or sets the ICertificate |
Charset | Gets the charset (Encoding) of the content of this entity. |
Content |
Gets or sets the content description of this entity. |
Content |
Gets or sets the content disposition of this entity. |
Content |
Gets or sets the content ID of this entity. |
Content |
Gets or sets the content location of this entity. |
Content |
Gets the inner message of a 'message/rfc822' entity. |
Content |
Gets the content string of this entity. |
Content |
Gets or sets the content transfer encoding of this entity. |
Content |
Gets or sets the content type of this entity. |
Default |
Gets or sets the default charset for MIME body and headers. |
Enveloped |
Gets the Enveloped |
Epilogue | Gets or sets the epilogue of this multipart entity. |
Headers | Gets the list of headers of this entity. |
Is |
Determines whether the entity is a multipart entity. |
Kind | Gets the type of the entity. |
Name | Gets or sets the suggested file name of this entity, if it is present. |
Options | Gets or sets various options for MIME parser and writer. |
Parent | Gets or sets the parent of this entity. |
Parts | Gets the list of child parts of this entity. |
Preamble | Gets or sets the preamble of this multipart entity. |
Read |
Gets or sets a value indicating whether the entity is read-only. |
Signature |
Gets or sets the signature style of a signed entity container. This property is only intended for entities with signed content. |
Signed |
Gets the Signed |
Silent | Gets or sets a value indicating whether cryptographic providers are allowed to display any user interface (UI) when working with private keys. |
Transfer |
Gets or sets the Transfer |
Methods
Name | Description |
---|---|
Clone() | Creates a copy of this entity. |
Decrypt() | Decrypts the contents of an enveloped entity. This method is only intended for entities with enveloped content. |
Encrypt() | Encrypts the contents of an enveloped entity. This method is only intended for entities with enveloped content. |
Get |
Returns the read-only stream representing a content of this entity. |
Get |
Returns the stream representing a content of this entity. |
Get |
Returns the read-only stream representing a raw content of this entity.
Only available for messages that were parsed with Mime |
Get |
Gets the signature entity if available. This can return this entity for signatures with inlined content. |
Load(Stream) | Loads the MIME entity from the specified stream. |
Load(String) | Loads the MIME entity from the specified file. |
On |
Raises the Unparsable |
Save(Stream) | Saves the MIME entity to the specified stream. |
Save(String) | Saves the MIME entity to the specified file. |
Set |
Sets the inner message of this entity to the specified message. |
Set |
Sets the content of this entity to data read from the specified stream. |
Set |
Sets the content of this entity to data read from the specified stream and sets media type and file name. |
Set |
Sets the content of this entity to data read from the specified stream and sets media type and file name. |
Set |
Sets the content of this entity to data read from the specified stream and sets media type, file name and transfer encoding. |
Set |
Sets the content of this entity to the specified text. |
Set |
Sets the content of this entity to the specified text and media type. |
Set |
Sets the content of this entity to the specified text, media type and character set. |
Set |
Sets the content of this entity to the specified text, media type and character set. |
Set |
Sets the content of this entity to data read from the specified file. |
Set |
Sets the content of this entity to data read from the specified file and sets file name. |
Set |
Sets the content of this entity to data read from the specified file and sets media type and file name. |
Set |
Sets the content of this entity to data read from the specified file and sets media type, file name and transfer encoding. |
Set |
Sets the content of this entity to the specified enveloped entity. |
Set |
Sets the content of this entity to the specified enveloped entity. |
SetEnvelopedContent(MimeEntity, SymmetricKeyAlgorithmId, Nullable<Int32>, EncryptionParameters, Certificate[]) | Sets the content of this entity to the specified enveloped entity. |
Set |
Sets the content of this entity to the specified enveloped entity. |
Set |
Sets the content of this entity to the specified enveloped entity. |
Set |
Sets the content of this entity to the specified signed content. |
Set |
Sets the content of this entity to the specified signed content. |
Set |
Sets the content of this entity to the specified signed content. |
Set |
Sets the content of this entity to the specified signed entity. |
Set |
Sets the content of this entity to the specified signed content. |
Sign() | Creates signatures for all signers that do not have one yet. This method is only intended for entities with signed content. |
To |
Coverts the Mime |
To |
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. |
Validate |
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. |
Validate |
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. |
Validate |
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. |
Events
Name | Description |
---|---|
Parsing |
Occurs when a MIME header is to be parsed. |
Unparsable |
Occurs when an unparsable header is encountered while parsing a MIME message. |