Redigeeri

Jagamisviis:


PeriodicTimer Constructors

Definition

Overloads

PeriodicTimer(TimeSpan)

Initializes the timer.

PeriodicTimer(TimeSpan, TimeProvider)

Initializes the timer.

PeriodicTimer(TimeSpan)

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

Initializes the timer.

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

Parameters

period
TimeSpan

The time interval in milliseconds between invocations of the callback.

Exceptions

period is less than or equal to 0, or greater than or equal to UInt32.MaxValue.

Applies to

PeriodicTimer(TimeSpan, TimeProvider)

Source:
PeriodicTimer.cs
Source:
PeriodicTimer.cs

Initializes the timer.

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)

Parameters

period
TimeSpan

The period between ticks.

timeProvider
TimeProvider

The TimeProvider used to interpret period.

Exceptions

period must be InfiniteTimeSpan or represent a number of milliseconds equal to or larger than 1 and smaller than MaxValue.

timeProvider is null.

Applies to