| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function ToMime( _ ByVal signingCertificates As ArrayList, _ ByVal decryptingCertificates As ArrayList, _ ByVal importSigners As Boolean _ ) As MessageStream | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MessageStream Dim signingCertificates As ArrayList Dim decryptingCertificates As ArrayList Dim importSigners As Boolean Dim value As MessageStream value = instance.ToMime(signingCertificates, decryptingCertificates, importSigners) | |
| C# | |
|---|---|
public MessageStream ToMime( ArrayList signingCertificates, ArrayList decryptingCertificates, bool importSigners ) | |
| Managed Extensions for C++ | |
|---|---|
public: MessageStream* ToMime( ArrayList* signingCertificates, ArrayList* decryptingCertificates, bool importSigners ) | |
| C++/CLI | |
|---|---|
public: MessageStream^ ToMime( ArrayList^ signingCertificates, ArrayList^ decryptingCertificates, bool importSigners ) | |
Parameters
- signingCertificates
- The certificates used to sign the message (can be null). This list is populated with certificates used to sign the message.
- decryptingCertificates
- An optional ArrayList of certificates to be used if decrypting a message (can be null). This list is updated with any additional certificates retrieved from the user's "My" certificate store.
- importSigners
- If true, signing certificates are automatically added to the user's "AddressBook" certificate store. If false, no update is made.
Return Value
MessageStream object that has had the S/MIME encoding removed from the message.If the value of MessageStream.IsSmime is true, this method can be used to obtain the verified and decrypted form of the message.
The signingCertificate is automatically added to the user's "AddressBook" certificate store (if it is not present already). This allows the user to encrypt future messages sent to that address.
The decryptingCertificate(s) is usually the user's certificate found in the user's "My" certificate store.
If importSigners is true, then signing certificates are automatically added to the user's "AddressBook" certificate store (if it is not present already). This allows the user to encrypt future messages sent to that email address.
Target Platforms: Microsoft .NET Framework 2.0