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 参考 » QAnywhere .NET API 参考 » 用于客户端的 QAnywhere .NET (.NET 2.0) » QAMessage 接口

 

Expiration 属性

获取消息的有效期值。

语法
Visual Basic
Public Readonly Property Expiration As Date
C#
public DateTime Expiration {get;}
注释

发送消息时,Expiration 标头字段保留未指派状态。发送方法完成后,它保留消息的到期时间。

它是一个只读属性,因为消息的到期时间是通过将 QAManagerBase::PutMessageTimeToLive 的生存期参数值与当前时间相加而设置的。

有关获取和设置消息标头和属性的详细信息,请参见QAnywhere 消息简介