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)
Syntax
'Declaration
Public Property Expires As DateTime
public DateTime Expires { get; set; }
public:
property DateTime Expires {
DateTime get ();
void set (DateTime value);
}
/** @property */
public DateTime get_Expires ()
/** @property */
public void set_Expires (DateTime value)
public function get Expires () : DateTime
public function set Expires (value : DateTime)
Remarks
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.
Note
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003