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




Returns a verified and/or decrypted message.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ToMime() As MessageStream
Visual Basic (Usage)Copy Code
Dim instance As MessageStream
Dim value As MessageStream
 
value = instance.ToMime()
C# 
public MessageStream ToMime()
Managed Extensions for C++ 
public: MessageStream* ToMime(); 
C++/CLI 
public:
MessageStream^ ToMime(); 

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.

Any signing certificate 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 email address.

The certificate used for decrypting is typically located in the user's "My" certificate store. If absent, an exception is thrown.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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