Click or drag to resize
MimeKit

MultipartEncrypted Class

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

Namespace:  MimeKit.Cryptography
Assembly:  MimeKit (in MimeKit.dll) Version: 2.14.0
Syntax
C#
public class MultipartEncrypted : Multipart

The MultipartEncrypted type exposes the following members.

Constructors
  NameDescription
Public methodMultipartEncrypted
Initialize a new instance of the MultipartEncrypted class.
Public methodMultipartEncrypted(MimeEntityConstructorArgs)
Initialize a new instance of the MultipartEncrypted class.
Top
Properties
  NameDescription
Public propertyBoundary
Get or set the boundary.
(Inherited from Multipart.)
Public propertyContentBase
Gets or sets the base content URI.
(Inherited from MimeEntity.)
Public propertyContentDisposition
Gets or sets the content disposition.
(Inherited from MimeEntity.)
Public propertyContentId
Gets or sets the content identifier.
(Inherited from MimeEntity.)
Public propertyContentLocation
Gets or sets the content location.
(Inherited from MimeEntity.)
Public propertyContentType
Gets the type of the content.
(Inherited from MimeEntity.)
Public propertyCount
Get the number of parts in the multipart.
(Inherited from Multipart.)
Public propertyEpilogue
Get or set the epilogue.
(Inherited from Multipart.)
Public propertyHeaders
Gets the list of headers.
(Inherited from MimeEntity.)
Public propertyIsAttachment
Gets a value indicating whether this MimePart is an attachment.
(Inherited from MimeEntity.)
Public propertyIsReadOnly
Get a value indicating whether this instance is read only.
(Inherited from Multipart.)
Public propertyItem
Get or set the MimeEntity at the specified index.
(Inherited from Multipart.)
Public propertyPreamble
Get or set the preamble.
(Inherited from Multipart.)
Top
Methods
  NameDescription
Public methodAccept
Dispatches to the specific visit method for this MIME entity.
(Overrides MultipartAccept(MimeVisitor).)
Public methodAdd
Add an entity to the multipart.
(Inherited from Multipart.)
Public methodClear
Clear a multipart.
(Inherited from Multipart.)
Public methodContains
Check if the Multipart contains the specified part.
(Inherited from Multipart.)
Public methodCopyTo
Copy all of the entities in the Multipart to the specified array.
(Inherited from Multipart.)
Public methodDecrypt(CancellationToken)
Decrypts the MultipartEncrypted part.
Public methodDecrypt(DigitalSignatureCollection, CancellationToken)
Decrypts the MultipartEncrypted part.
Public methodDecrypt(OpenPgpContext, CancellationToken)
Decrypts the MultipartEncrypted part.
Public methodDecrypt(OpenPgpContext, DigitalSignatureCollection, CancellationToken)
Decrypts the MultipartEncrypted part.
Public methodStatic memberEncrypt(IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(OpenPgpContext, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(OpenPgpContext, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(OpenPgpContext, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodStatic memberEncrypt(OpenPgpContext, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by encrypting the specified entity.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Get the enumerator for the children of the Multipart.
(Inherited from Multipart.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Get the index of an entity.
(Inherited from Multipart.)
Public methodInsert
Insert an entity into the Multipart at the specified index.
(Inherited from Multipart.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnHeadersChanged
Called when the headers change in some way.
(Inherited from MimeEntity.)
Public methodPrepare
Prepare the MIME entity for transport using the specified encoding constraints.
(Inherited from Multipart.)
Public methodRemove
Remove an entity from the multipart.
(Inherited from Multipart.)
Public methodRemoveAt
Remove an entity from the Multipart at the specified index.
(Inherited from Multipart.)
Protected methodRemoveHeader
Remove a header by name.
(Inherited from MimeEntity.)
Protected methodSetHeader(String, Byte)
Set the value of a header using the raw value.
(Inherited from MimeEntity.)
Protected methodSetHeader(String, String)
Set the value of a header.
(Inherited from MimeEntity.)
Public methodStatic memberSignAndEncrypt(PgpSecretKey, DigestAlgorithm, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(PgpSecretKey, DigestAlgorithm, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(MailboxAddress, DigestAlgorithm, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(OpenPgpContext, MailboxAddress, DigestAlgorithm, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(OpenPgpContext, PgpSecretKey, DigestAlgorithm, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(OpenPgpContext, MailboxAddress, DigestAlgorithm, EncryptionAlgorithm, IEnumerableMailboxAddress, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodStatic memberSignAndEncrypt(OpenPgpContext, PgpSecretKey, DigestAlgorithm, EncryptionAlgorithm, IEnumerablePgpPublicKey, MimeEntity)
Create a multipart/encrypted MIME part by signing and encrypting the specified entity.
Public methodToString
Returns a String that represents the MimeEntity for debugging purposes.
(Inherited from MimeEntity.)
Protected methodTryInit
Tries to use the given object to initialize the appropriate property.
(Inherited from MimeEntity.)
Public methodWriteTo(Stream, CancellationToken)
Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteTo(String, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(Stream, Boolean, CancellationToken)
Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteTo(String, Boolean, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, Stream, CancellationToken)
Write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, String, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, String, Boolean, CancellationToken)
Write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteTo(FormatOptions, Stream, Boolean, CancellationToken)
Write the Multipart to the specified output stream.
(Inherited from Multipart.)
Public methodWriteToAsync(Stream, CancellationToken)
Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteToAsync(String, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(Stream, Boolean, CancellationToken)
Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteToAsync(String, Boolean, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, Stream, CancellationToken)
Asynchronously write the MimeEntity to the specified output stream.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, String, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, String, Boolean, CancellationToken)
Asynchronously write the MimeEntity to the specified file.
(Inherited from MimeEntity.)
Public methodWriteToAsync(FormatOptions, Stream, Boolean, CancellationToken)
Asynchronously write the Multipart to the specified output stream.
(Inherited from Multipart.)
Top
Remarks
This mime-type is common when dealing with PGP/MIME but is not used for S/MIME.
See Also