MailBee.NET Objects 3.1

MailMessage.References Property

Gets or sets the references of the message.

public string References {get; set;}

Property Value

A string containing the references of the message. The default value is an empty string.

Remarks

The value of this property is taken from References header.

This header usually contains a space-separated list of Message-ID values of all messages in a thread. However, building message threads using this header is not reliable since many e-mail clients do not support this mechanism.

Example

This sample loads the message from .EML file and displays the references of the message.

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

MailMessage msg = new MailMessage();
msg.LoadMessage(@"C:\Data\example.eml");
Console.WriteLine(msg.References);
[Visual Basic]
' To use the code below, import MailBee namespaces at the top of your code.
Imports MailBee
Imports MailBee.Mime

Dim msg As New MailMessage
msg.LoadMessage("C:\Data\example.eml")
Console.WriteLine(msg.References)

See Also

MailMessage Class | MailBee.Mime Namespace