Timestamp.TtlInSeconds Property

Gets or sets the number of seconds after creation that a message is valid.

Namespace: Microsoft.Web.Services2.Security.Utility
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.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 Int64 TtlInSeconds{
    Int64 get();
    Void set(Int64);
}
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
System.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 Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

Timestamp Class
Microsoft.Web.Services2.Security.Utility Namespace

Other Resources

Timestamp Members