Timestamp.TtlInSeconds Property
Gets or sets the number of seconds after creation that a message is valid.
Namespace: Microsoft.Web.Services3.Security.Utility
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim timestamp1 As Timestamp
Dim returnValue As Long
returnValue = timestamp1.TtlInSeconds
Dim sampleValue As Long
timestamp1.TtlInSeconds = sampleValue
Syntax
'Declaration
Public Property TtlInSeconds() As Long
public long TtlInSeconds {get; set;}
public:
property long long TtlInSeconds {
long long get();
void set(long long value);
}
public long get_TtlInSeconds();
public void set_TtlInSeconds(long);
public function get TtlInSeconds() : long;
public function set TtlInSeconds(long);
Property Value
The number of seconds that the message is valid, measured from the time of its creation.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | TtlInSeconds is set to a negative value other than -1. |
Remarks
You can specify expiration time on the sender side with the TtlInSeconds property. If the TtlInSeconds property is set to -1, the Expires property is set to null and the message may never expire. If the TtlInSeconds property is set to 0, the message expires immediately.
Note
TtlInSeconds is represented in seconds. For example, if TtlInSeconds is set to 60, the message will expire 1 minute after its creation 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 Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
Timestamp Class
Timestamp Members
Microsoft.Web.Services3.Security.Utility Namespace