PeriodicTimer Constructeurs

Définition

Surcharges

PeriodicTimer(TimeSpan)

Initialise le minuteur.

PeriodicTimer(TimeSpan, TimeProvider)

Initialise le minuteur.

PeriodicTimer(TimeSpan)

Source:
PeriodicTimer.cs
Source:
PeriodicTimer.cs
Source:
PeriodicTimer.cs

Initialise le minuteur.

public:
 PeriodicTimer(TimeSpan period);
public PeriodicTimer (TimeSpan period);
new System.Threading.PeriodicTimer : TimeSpan -> System.Threading.PeriodicTimer
Public Sub New (period As TimeSpan)

Paramètres

period
TimeSpan

Intervalle de temps en millisecondes entre les appels du rappel.

Exceptions

period est inférieur ou égal à 0, ou supérieur ou égal à UInt32.MaxValue.

S’applique à

PeriodicTimer(TimeSpan, TimeProvider)

Source:
PeriodicTimer.cs
Source:
PeriodicTimer.cs

Initialise le minuteur.

public:
 PeriodicTimer(TimeSpan period, TimeProvider ^ timeProvider);
public PeriodicTimer (TimeSpan period, TimeProvider timeProvider);
new System.Threading.PeriodicTimer : TimeSpan * TimeProvider -> System.Threading.PeriodicTimer
Public Sub New (period As TimeSpan, timeProvider As TimeProvider)

Paramètres

period
TimeSpan

Période entre les graduations.

timeProvider
TimeProvider

TimeProvider utilisé pour interpréter period.

Exceptions

period doit être InfiniteTimeSpan ou représenter un nombre de millisecondes égal ou supérieur à 1 et inférieur MaxValueà .

timeProvider a la valeur null.

S’applique à