LifeTime Constructor (Int64)
Initializes a new instance of the LifeTime class using the specified time-to-live value, in seconds.
Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim ttlInSeconds As Long
Dim lifeTime1 As New LifeTime(ttlInSeconds)
Syntax
'Declaration
Public Sub New( _
ByVal ttlInSeconds As Long _
)
public LifeTime(
long ttlInSeconds
);
public:
LifeTime(
long long ttlInSeconds
);
public LifeTime(
long ttlInSeconds
);
public function LifeTime(
ttlInSeconds : long
);
Parameters
- ttlInSeconds
The number of seconds for the LifeTime.
Exceptions
Exception type | Condition |
---|---|
ArgumentException | ttlInSeconds is less than 0 and not equal to System.Threading.Timeout.Infinite. |
Remarks
The Created and Expires properties are set to null.
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
LifeTime Class
LifeTime Members
Microsoft.Web.Services3.Security Namespace