Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » QAnywhere » QAnywhere Reference » QAnywhere C++ API reference » QAMessage class

 

getExpiration function

Syntax
qa_long QAMessage::getExpiration()
Remarks

Gets the message's expiration time.

When a message is sent, the Expiration header field is left unassigned. After the send method completes, the Expiration header holds the expiration time of the message.

This property is read-only because the expiration time of a message is set by adding the time-to-live argument of putMessageTimeToLive to the current time.

The expiration time is in units that are natural for the platform. For Windows/PocketPC platforms, expiration is a SYSTEMTIME, converted to a FILETIME, which is copied to an qa_long value.

For more information about getting and setting message headers and properties, see Introduction to QAnywhere messages.

Returns

The expiration time.

See Also

getTimestamp function