Lifetime Konstruktorer

Definition

Initierar en ny instans av Lifetime klassen.

Överlagringar

Name Description
Lifetime(DateTime, DateTime)

Initierar en ny instans av Lifetime klassen med angiven skapande- och förfallotid.

Lifetime(Nullable<DateTime>, Nullable<DateTime>)

Initierar en ny instans av Lifetime klassen med angiven skapande- och förfallotid.

Lifetime(DateTime, DateTime)

Initierar en ny instans av Lifetime klassen med angiven skapande- och förfallotid.

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)

Parametrar

created
DateTime

En DateTime som representerar tiden då token skapades i UTC.

expires
DateTime

En DateTime som representerar förfallotiden för token i UTC.

Undantag

Den tid som anges av created inträffar före den tid som anges av expires.

Gäller för

Lifetime(Nullable<DateTime>, Nullable<DateTime>)

Initierar en ny instans av Lifetime klassen med angiven skapande- och förfallotid.

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))

Parametrar

created
Nullable<DateTime>

En DateTime som anger tiden då token skapades i UTC. Kan vara null.

expires
Nullable<DateTime>

En DateTime som anger förfallotiden för token i UTC. Kan vara null.

Undantag

Den tid som anges av created inträffar före den tid som anges av expires.

Gäller för