Share via


EmailMessage.IsOpaqueMessage property

When overridden in a derived class, the IsOpaqueMessage property gets a value that indicates whether the message is encrypted or encapsulated in a format that the EmailMessage class cannot parse.

Namespace:  Microsoft.Exchange.Data.Transport.Email
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public ReadOnly Property IsOpaqueMessage As Boolean
    Get
'Usage
Dim instance As EmailMessage
Dim value As Boolean

value = instance.IsOpaqueMessage
public bool IsOpaqueMessage { get; }

Property value

Type: System.Boolean
When overridden in a derived class, the IsOpaqueMessage property returns true if the message is encrypted or in a format that the EmailMessage class cannot parse; otherwise, the property returns false.

Remarks

Opaque messages include messages that are encrypted and some types of signed messages. When the IsOpaqueMessage property is true, the EmailMessage class provides read-only access to the message.

Note

If you add or remove attachments or bodies from a signed e-mail message, the signature will be removed from the message. To retain the digital signature, we recommend that you create a new message that wraps the signed message by adding the signed message as an attachment to the new message.

See also

Reference

EmailMessage class

EmailMessage members

Microsoft.Exchange.Data.Transport.Email namespace