Returns the date and time the mail message was composed.

Namespace: S22.Imap
Assembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public static Nullable<DateTime> Date(
	this MailMessage message
)

Parameters

message
Type: System.Net.Mail..::..MailMessage
The MailMessage instance to return the date and time for.

Return Value

The date and time the mail message was composed, or null if the mail message does not contain any date information.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MailMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also