PeriodicTimer.Period Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the period between ticks.
public:
property TimeSpan Period { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan Period { get; set; }
member this.Period : TimeSpan with get, set
Public Property Period As TimeSpan
Property Value
Exceptions
value
must be InfiniteTimeSpan or represent a number of milliseconds equal to or larger than 1 and smaller than MaxValue.
Remarks
All prior ticks of the timer, including any that may be waiting to be consumed by WaitForNextTickAsync(CancellationToken), are unaffected by changes to Period. Setting Period affects only and all subsequent times at which the timer will tick.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.