Application |
public ApplicationPkcs7Mime( SecureMimeType type, Stream stream )
Exception | Condition |
---|---|
ArgumentNullException | stream is null. |
ArgumentOutOfRangeException | type is not a valid value. |
ArgumentException | stream does not support reading. -or- stream does not support seeking. |
Creates a new MIME part with a Content-Type of application/pkcs7-mime and the stream as its content.
Unless you are writing your own pkcs7 implementation, you'll probably want to use the Compress(MimeEntity, CancellationToken), Encrypt(CmsRecipientCollection, MimeEntity, CancellationToken), and/or Sign(CmsSigner, MimeEntity, CancellationToken) method to create new instances of this class.