1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Threading.Timer</name>
6 <member name="T:System.Threading.Timer">
7 <summary>Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited.</summary>
9 <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback)">
10 <summary>Initializes a new instance of the <see cref="T:System.Threading.Timer"></see> class with an infinite period and an infinite due time, using the newly created <see cref="T:System.Threading.Timer"></see> object as the state object.</summary>
11 <param name="callback">A <see cref="T:System.Threading.TimerCallback"></see> delegate representing a method to be executed.</param>
13 <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback,System.Object,System.Int32,System.Int32)">
14 <summary>Initializes a new instance of the <see langword="Timer"></see> class, using a 32-bit signed integer to specify the time interval.</summary>
15 <param name="callback">A <see cref="T:System.Threading.TimerCallback"></see> delegate representing a method to be executed.</param>
16 <param name="state">An object containing information to be used by the callback method, or <see langword="null"></see>.</param>
17 <param name="dueTime">The amount of time to delay before callback is invoked, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to prevent the timer from starting. Specify zero (0) to start the timer immediately.</param>
18 <param name="period">The time interval between invocations of callback, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to disable periodic signaling.</param>
19 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see>.</exception>
20 <exception cref="T:System.ArgumentNullException">The <paramref name="callback">callback</paramref> parameter is <see langword="null"></see>.</exception>
22 <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback,System.Object,System.Int64,System.Int64)">
23 <summary>Initializes a new instance of the <see langword="Timer"></see> class, using 64-bit signed integers to measure time intervals.</summary>
24 <param name="callback">A <see cref="T:System.Threading.TimerCallback"></see> delegate representing a method to be executed.</param>
25 <param name="state">An object containing information to be used by the callback method, or <see langword="null"></see>.</param>
26 <param name="dueTime">The amount of time to delay before callback is invoked, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to prevent the timer from starting. Specify zero (0) to start the timer immediately.</param>
27 <param name="period">The time interval between invocations of callback, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to disable periodic signaling.</param>
28 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see>.</exception>
29 <exception cref="T:System.NotSupportedException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is greater than 4294967294.</exception>
31 <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback,System.Object,System.TimeSpan,System.TimeSpan)">
32 <summary>Initializes a new instance of the <see langword="Timer"></see> class, using <see cref="T:System.TimeSpan"></see> values to measure time intervals.</summary>
33 <param name="callback">A delegate representing a method to be executed.</param>
34 <param name="state">An object containing information to be used by the callback method, or <see langword="null"></see>.</param>
35 <param name="dueTime">The amount of time to delay before the callback parameter invokes its methods. Specify negative one (-1) milliseconds to prevent the timer from starting. Specify zero (0) to start the timer immediately.</param>
36 <param name="period">The time interval between invocations of the methods referenced by callback. Specify negative one (-1) milliseconds to disable periodic signaling.</param>
37 <exception cref="T:System.ArgumentOutOfRangeException">The number of milliseconds in the value of <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> is negative and not equal to <see cref="System.Threading.Timeout.Infinite"></see>, or is greater than <see cref="System.Int32.MaxValue"></see>.</exception>
38 <exception cref="T:System.ArgumentNullException">The <paramref name="callback">callback</paramref> parameter is <see langword="null"></see>.</exception>
40 <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback,System.Object,System.UInt32,System.UInt32)">
41 <summary>Initializes a new instance of the <see langword="Timer"></see> class, using 32-bit unsigned integers to measure time intervals.</summary>
42 <param name="callback">A delegate representing a method to be executed.</param>
43 <param name="state">An object containing information to be used by the callback method, or <see langword="null"></see>.</param>
44 <param name="dueTime">The amount of time to delay before callback is invoked, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to prevent the timer from starting. Specify zero (0) to start the timer immediately.</param>
45 <param name="period">The time interval between invocations of callback, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to disable periodic signaling.</param>
46 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see>.</exception>
47 <exception cref="T:System.ArgumentNullException">The <paramref name="callback">callback</paramref> parameter is <see langword="null"></see>.</exception>
49 <member name="M:System.Threading.Timer.Change(System.Int32,System.Int32)">
50 <summary>Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.</summary>
51 <param name="dueTime">The amount of time to delay before the invoking the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.</param>
52 <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to disable periodic signaling.</param>
53 <returns><see langword="true"></see> if the timer was successfully updated; otherwise, <see langword="false"></see>.</returns>
54 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.Timer"></see> has already been disposed.</exception>
55 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is negative and is not equal to <see cref="System.Threading.Timeout.Infinite"></see>.</exception>
57 <member name="M:System.Threading.Timer.Change(System.Int64,System.Int64)">
58 <summary>Changes the start time and the interval between method invocations for a timer, using 64-bit signed integers to measure time intervals.</summary>
59 <param name="dueTime">The amount of time to delay before the invoking the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.</param>
60 <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to disable periodic signaling.</param>
61 <returns><see langword="true"></see> if the timer was successfully updated; otherwise, <see langword="false"></see>.</returns>
62 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.Timer"></see> has already been disposed.</exception>
63 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is less than -1.</exception>
64 <exception cref="T:System.NotSupportedException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter is greater than 4294967294.</exception>
66 <member name="M:System.Threading.Timer.Change(System.TimeSpan,System.TimeSpan)">
67 <summary>Changes the start time and the interval between method invocations for a timer, using <see cref="T:System.TimeSpan"></see> values to measure time intervals.</summary>
68 <param name="dueTime">A <see cref="T:System.TimeSpan"></see> representing the amount of time to delay before invoking the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed. Specify negative one (-1) milliseconds to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.</param>
69 <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed. Specify negative one (-1) milliseconds to disable periodic signaling.</param>
70 <returns><see langword="true"></see> if the timer was successfully updated; otherwise, <see langword="false"></see>.</returns>
71 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.Timer"></see> has already been disposed.</exception>
72 <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter, in milliseconds, is less than -1.</exception>
73 <exception cref="T:System.NotSupportedException">The <paramref name="dueTime">dueTime</paramref> or <paramref name="period">period</paramref> parameter, in milliseconds, is greater than 4294967294.</exception>
75 <member name="M:System.Threading.Timer.Change(System.UInt32,System.UInt32)">
76 <summary>Changes the start time and the interval between method invocations for a timer, using 32-bit unsigned integers to measure time intervals.</summary>
77 <param name="dueTime">The amount of time to delay before the invoking the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to prevent the timer from restarting. Specify zero (0) to restart the timer immediately.</param>
78 <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer"></see> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite"></see> to disable periodic signaling.</param>
79 <returns><see langword="true"></see> if the timer was successfully updated; otherwise, <see langword="false"></see>.</returns>
80 <exception cref="T:System.ObjectDisposedException">The <see cref="System.Threading.Timer"></see> has already been disposed.</exception>
82 <member name="M:System.Threading.Timer.Dispose">
83 <summary>Releases all resources used by the current instance of <see cref="T:System.Threading.Timer"></see>.</summary>
85 <member name="M:System.Threading.Timer.Dispose(System.Threading.WaitHandle)">
86 <summary>Releases all resources used by the current instance of <see cref="T:System.Threading.Timer"></see> and signals when the timer has been disposed of.</summary>
87 <param name="notifyObject">The <see cref="T:System.Threading.WaitHandle"></see> to be signaled when the <see langword="Timer"></see> has been disposed of.</param>
88 <returns><see langword="true"></see> if the function succeeds; otherwise, <see langword="false"></see>.</returns>
89 <exception cref="T:System.ArgumentNullException">The <paramref name="notifyObject">notifyObject</paramref> parameter is <see langword="null"></see>.</exception>
91 <member name="T:System.Threading.TimerCallback">
92 <summary>Represents the method that handles calls from a <see cref="T:System.Threading.Timer"></see>.</summary>
93 <param name="state">An object containing application-specific information relevant to the method invoked by this delegate, or <see langword="null"></see>.</param>