| 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.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.
Target Platforms: Microsoft .NET Framework 2.0