Editare

Partajați prin


Lifetime Constructors

Definition

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

created
DateTime

A DateTime that represents the token creation time in UTC.

expires
DateTime

A DateTime that represents the token expiration time in UTC.

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

created
Nullable<DateTime>

A DateTime that specifies the token creation time in UTC. Can be null.

expires
Nullable<DateTime>

A DateTime that specifies the token expiration time in UTC. Can be null.

Exceptions

The time specified by created occurs before the time specified by expires.

Applies to