This documentation is archived and is not being maintained.

EmailMessage.Expires Property

When overridden in a derived class, the Expires property gets or sets the date and time the message expires.

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

'Declaration
Public Property Expires As DateTime
	Get
	Set
'Usage
Dim instance As EmailMessage
Dim value As DateTime

value = instance.Expires

instance.Expires = value

Property Value

Type: System.DateTime

Setting the Expires property of a Multipurpose Internet Mail Extensions (MIME) message to a value of DateTime.MinValue removes the header from the message. When the value of the Expires property is set, the EmailMessage object determines the time zone to be either current or coordinated universal time (UTC), depending on the DateTimeKind of the value.

NoteNote

When you set the value of the Expires property by using an instance of the DateTime structure that does not specify DateTimeKind, the Expires property assumes that the DateTime instance represents local time.

Show: