DispatcherTimer.Interval Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the amount of time between timer ticks.

Namespace:  System.Windows.Threading
Assembly:  System.Windows (in System.Windows.dll)

Syntax

Public Property Interval As TimeSpan
public TimeSpan Interval { get; set; }

Property Value

Type: System..::.TimeSpan
The amount of time between ticks. The default is 00:00:00.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The specified value when setting this property represents a negative time interval.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

DispatcherTimer Class

System.Windows.Threading Namespace