Lifetime Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Lifetime class.
Overloads
Lifetime(DateTime, DateTime) |
Initializes a new instance of the Lifetime class with the specified creation and expiration time. |
Lifetime(Nullable<DateTime>, Nullable<DateTime>) |
Initializes a new instance of the Lifetime class with the specified creation and expiration time. |
Lifetime(DateTime, DateTime)
Initializes a new instance of the Lifetime class with the specified creation and expiration time.
public:
Lifetime(DateTime created, DateTime expires);
public Lifetime (DateTime created, DateTime expires);
new System.IdentityModel.Protocols.WSTrust.Lifetime : DateTime * DateTime -> System.IdentityModel.Protocols.WSTrust.Lifetime
Public Sub New (created As DateTime, expires As DateTime)
Parameters
Exceptions
The time specified by created
occurs before the time specified by expires
.
Applies to
Lifetime(Nullable<DateTime>, Nullable<DateTime>)
Initializes a new instance of the Lifetime class with the specified creation and expiration time.
public:
Lifetime(Nullable<DateTime> created, Nullable<DateTime> expires);
public Lifetime (DateTime? created, DateTime? expires);
new System.IdentityModel.Protocols.WSTrust.Lifetime : Nullable<DateTime> * Nullable<DateTime> -> System.IdentityModel.Protocols.WSTrust.Lifetime
Public Sub New (created As Nullable(Of DateTime), expires As Nullable(Of DateTime))
Parameters
Exceptions
The time specified by created
occurs before the time specified by expires
.