Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

TimeExpired Property (Message Object)

Exchange Server 2003

Topic Last Modified: 2004-06-09

The TimeExpired property specifies the date/time the message becomes invalid and can be safely deleted. Read/write.


Variant (vbDate format)

The TimeExpired property is not required on an AppointmentItem, MeetingItem, or Message object. If the sender does not set TimeExpired, an attempt by the receiver to read it returns CdoE_NOT_FOUND.

AppointmentItem objects in a Microsoft® Schedule+ calendar folder do not have the full set of attributes of a general message. If you obtain the default calendar folder by passing CdoDefaultFolderCalendar to the Session object's GetDefaultFolder method, its appointments have no defined value for the TimeExpired property. An attempt to access TimeExpired in this case returns CdoE_NOT_FOUND.

The TimeExpired property corresponds to the MAPI property PR_EXPIRY_TIME.

This code fragment sets the expiry time of a message to September 2, 1998 at 9:00 in the morning:

' ... verify that objOneMsg is valid, then ...
objOneMsg.TimeExpired = Cdate(#2Sep1998 09:00#)
© 2015 Microsoft