PowerTCP Mail for .NET
ToMime(ArrayList,ArrayList,Boolean) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MessageStream Class > ToMime Method : ToMime(ArrayList,ArrayList,Boolean) Method




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.
Returns a verified and/or decrypted message, optionally returning information about the original S/MIME message.

Syntax

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)
Managed Extensions for C++ 
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.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.