Expires Constructor (DateTime, Int64)
Initializes a new instance of the Expires class when the period of time that the security token is valid begins in the future.
Namespace: Microsoft.Web.Services3.Security.Utility
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim created As DateTime
Dim ttlInSeconds As Long
Dim expires1 As New Expires(created, ttlInSeconds)
Syntax
'Declaration
Public Sub New( _
ByVal created As DateTime, _
ByVal ttlInSeconds As Long _
)
public Expires(
DateTime created,
long ttlInSeconds
);
public:
Expires(
DateTime^ created,
long long ttlInSeconds
);
public Expires(
DateTime created,
long ttlInSeconds
);
public function Expires(
created : DateTime,
ttlInSeconds : long
);
Parameters
- created
A DateTime when the security token becomes valid.
- ttlInSeconds
The period of time the security token is valid, in seconds.
Remarks
A ttlInSeconds parameter value of -1 indicates the security token does not expire.
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
Expires Class
Expires Members
Microsoft.Web.Services3.Security.Utility Namespace