MailBee.NET Objects 3.1

MailMessage.Sensitivity Property

Gets or sets the sensitivity of the message.

public MailSensitivity Sensitivity {get; set;}

Property Value

The sensitivity of the message, or None if not set. The default value is None.

Remarks

The value of this property is taken from Sensitivity header.

Example

This sample loads the message from .EML file and sets the private level of sensitivity of this message.

[C#]
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Mime;

' The actual code (put it into a method of your class)

' Load the message from file.
MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Docs\TestMail1.eml");

msg.Sensitivity = MailSensitivity.Private;
[Visual Basic]
' To use the code below, import MailBee namespaces at the top of your code.
Imports MailBee
Imports MailBee.Mime

' The actual code (put it into a method of your class)

' Load the message from file.
Dim msg As New MailMessage
msg.LoadMessage("C:\Docs\TestMail1.eml")

msg.Sensitivity = MailSensitivity.Private

See Also

MailMessage Class | MailBee.Mime Namespace