MultipartEncrypted Class

A multipart MIME part with a ContentType of multipart/encrypted containing an encrypted MIME part.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public class MultipartEncrypted : Multipart, 
	IMultipartEncrypted, IMultipart, IMimeEntity, IDisposable, ICollection<MimeEntity>, 
	IEnumerable<MimeEntity>, IEnumerable, IList<MimeEntity>
Inheritance
Object    MimeEntity    Multipart    MultipartEncrypted
Implements
IMultipartEncrypted, IMimeEntity, IMultipart, ICollectionMimeEntity, IEnumerableMimeEntity, IListMimeEntity, IEnumerable, IDisposable

Remarks

This mime-type is common when dealing with PGP/MIME but is not used for S/MIME.

Constructors

MultipartEncrypted Initialize a new instance of the MultipartEncrypted class.
MultipartEncrypted(MimeEntityConstructorArgs) Initialize a new instance of the MultipartEncrypted class.

Properties

Boundary Get or set the boundary.
(Inherited from Multipart)
ContentBase Get or set the base content URI.
(Inherited from MimeEntity)
ContentDisposition Get or set the content disposition.
(Inherited from MimeEntity)
ContentId Get or set the Content-Id.
(Inherited from MimeEntity)
ContentLocation Get or set the content location.
(Inherited from MimeEntity)
ContentType Get the type of the content.
(Inherited from MimeEntity)
Count Get the number of parts in the multipart.
(Inherited from Multipart)
Epilogue Get or set the epilogue.
(Inherited from Multipart)
Headers Get the list of headers.
(Inherited from MimeEntity)
IsAttachment Get a value indicating whether this MimePart is an attachment.
(Inherited from MimeEntity)
IsReadOnly Get a value indicating whether this instance is read only.
(Inherited from Multipart)
Item Get or set the MimeEntity at the specified index.
(Inherited from Multipart)
Preamble Get or set the preamble.
(Inherited from Multipart)

Methods

Accept Dispatches to the specific visit method for this MIME entity.
(Overrides MultipartAccept(MimeVisitor))
Add Add an entity to the multipart.
(Inherited from Multipart)
Clear Clear a multipart.
(Inherited from Multipart)
Clear(Boolean) Clear a multipart.
(Inherited from Multipart)
Contains Check if the Multipart contains the specified entity.
(Inherited from Multipart)
CopyTo Copy all the entities in the Multipart to the specified array.
(Inherited from Multipart)
Decrypt(CancellationToken) Decrypts the MultipartEncrypted part.
Decrypt(DigitalSignatureCollection, CancellationToken) Decrypts the MultipartEncrypted part.
Decrypt(OpenPgpContext, CancellationToken) Decrypts the MultipartEncrypted part.
Decrypt(OpenPgpContext, DigitalSignatureCollection, CancellationToken) Decrypts the MultipartEncrypted part.
Dispose Releases all resources used by the MimeEntity object.
(Inherited from MimeEntity)
Dispose(Boolean) Release the unmanaged resources used by the Multipart and optionally releases the managed resources.
(Inherited from Multipart)
Encrypt(IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(OpenPgpContext, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(OpenPgpContext, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(OpenPgpContext, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
Encrypt(OpenPgpContext, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(OpenPgpContext, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(OpenPgpContext, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(OpenPgpContext, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
EncryptAsync(OpenPgpContext, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by encrypting the specified entity.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Get the enumerator for the children of the Multipart.
(Inherited from Multipart)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
IndexOf Get the index of an entity.
(Inherited from Multipart)
Insert Insert an entity into the Multipart at the specified index.
(Inherited from Multipart)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
OnHeadersChanged Called when the headers change in some way.
(Inherited from MimeEntity)
Prepare Prepare the MIME entity for transport using the specified encoding constraints.
(Inherited from Multipart)
Remove Remove an entity from the multipart.
(Inherited from Multipart)
RemoveAt Remove an entity from the Multipart at the specified index.
(Inherited from Multipart)
RemoveHeader Remove a header by name.
(Inherited from MimeEntity)
SetHeader(String, Byte) Set the value of a header using the raw value.
(Inherited from MimeEntity)
SetHeader(String, String) Set the value of a header.
(Inherited from MimeEntity)
SignAndEncrypt(MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(PgpSecretKey, DigestAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(MailboxAddress, DigestAlgorithm, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(OpenPgpContext, MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(OpenPgpContext, PgpSecretKey, DigestAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(PgpSecretKey, DigestAlgorithm, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(OpenPgpContext, MailboxAddress, DigestAlgorithm, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncrypt(OpenPgpContext, PgpSecretKey, DigestAlgorithm, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(PgpSecretKey, DigestAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(MailboxAddress, DigestAlgorithm, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(OpenPgpContext, MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(OpenPgpContext, PgpSecretKey, DigestAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(PgpSecretKey, DigestAlgorithm, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(OpenPgpContext, MailboxAddress, DigestAlgorithm, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
SignAndEncryptAsync(OpenPgpContext, PgpSecretKey, DigestAlgorithm, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity, CancellationToken) Asynchronously create a multipart/encrypted MIME part by signing and encrypting the specified entity.
ToString Return a String that represents the MimeEntity for debugging purposes.
(Inherited from MimeEntity)
TryGetValue Get the preferred message body if it exists.
(Inherited from Multipart)
TryInit Tries to use the given object to initialize the appropriate property.
(Inherited from MimeEntity)
WriteTo(Stream, CancellationToken) Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteTo(String, CancellationToken) Write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteTo(FormatOptions, Stream, CancellationToken) Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteTo(FormatOptions, String, CancellationToken) Write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteTo(Stream, Boolean, CancellationToken) Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteTo(String, Boolean, CancellationToken) Write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteTo(FormatOptions, Stream, Boolean, CancellationToken) Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteTo(FormatOptions, String, Boolean, CancellationToken) Write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteToAsync(Stream, CancellationToken) Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteToAsync(String, CancellationToken) Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteToAsync(FormatOptions, Stream, CancellationToken) Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteToAsync(FormatOptions, String, CancellationToken) Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteToAsync(Stream, Boolean, CancellationToken) Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteToAsync(String, Boolean, CancellationToken) Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity)
WriteToAsync(FormatOptions, Stream, Boolean, CancellationToken) Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity)
WriteToAsync(FormatOptions, String, Boolean, CancellationToken) Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity)

See Also