You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

System.Threading.Timer.xml 6.5 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <assembly>
  4. <name>System.Threading.Timer</name>
  5. </assembly>
  6. <members>
  7. <member name="T:System.Threading.Timer">
  8. <summary>Provides a mechanism for executing a method at specified intervals. This class cannot be inherited.To browse the .NET Framework source code for this type, see the Reference Source.</summary>
  9. <filterpriority>1</filterpriority>
  10. </member>
  11. <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback,System.Object,System.Int32,System.Int32)">
  12. <summary>Initializes a new instance of the Timer class, using a 32-bit signed integer to specify the time interval.</summary>
  13. <param name="callback">A <see cref="T:System.Threading.TimerCallback" /> delegate representing a method to be executed. </param>
  14. <param name="state">An object containing information to be used by the callback method, or null. </param>
  15. <param name="dueTime">The amount of time to delay before <paramref name="callback" /> is invoked, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to prevent the timer from starting. Specify zero (0) to start the timer immediately. </param>
  16. <param name="period">The time interval between invocations of <paramref name="callback" />, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to disable periodic signaling. </param>
  17. <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" />. </exception>
  18. <exception cref="T:System.ArgumentNullException">The <paramref name="callback" /> parameter is null. </exception>
  19. </member>
  20. <member name="M:System.Threading.Timer.#ctor(System.Threading.TimerCallback,System.Object,System.TimeSpan,System.TimeSpan)">
  21. <summary>Initializes a new instance of the Timer class, using <see cref="T:System.TimeSpan" /> values to measure time intervals.</summary>
  22. <param name="callback">A delegate representing a method to be executed. </param>
  23. <param name="state">An object containing information to be used by the callback method, or null. </param>
  24. <param name="dueTime">The amount of time to delay before the <paramref name="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>
  25. <param name="period">The time interval between invocations of the methods referenced by <paramref name="callback" />. Specify negative one (-1) milliseconds to disable periodic signaling. </param>
  26. <exception cref="T:System.ArgumentOutOfRangeException">The number of milliseconds in the value of <paramref name="dueTime" /> or <paramref name="period" /> is negative and not equal to <see cref="F:System.Threading.Timeout.Infinite" />, or is greater than <see cref="F:System.Int32.MaxValue" />. </exception>
  27. <exception cref="T:System.ArgumentNullException">The <paramref name="callback" /> parameter is null. </exception>
  28. </member>
  29. <member name="M:System.Threading.Timer.Change(System.Int32,System.Int32)">
  30. <summary>Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.</summary>
  31. <returns>true if the timer was successfully updated; otherwise, false.</returns>
  32. <param name="dueTime">The amount of time to delay before the invoking the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to prevent the timer from restarting. Specify zero (0) to restart the timer immediately. </param>
  33. <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed, in milliseconds. Specify <see cref="F:System.Threading.Timeout.Infinite" /> to disable periodic signaling. </param>
  34. <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Timer" /> has already been disposed. </exception>
  35. <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter is negative and is not equal to <see cref="F:System.Threading.Timeout.Infinite" />. </exception>
  36. <filterpriority>2</filterpriority>
  37. </member>
  38. <member name="M:System.Threading.Timer.Change(System.TimeSpan,System.TimeSpan)">
  39. <summary>Changes the start time and the interval between method invocations for a timer, using <see cref="T:System.TimeSpan" /> values to measure time intervals.</summary>
  40. <returns>true if the timer was successfully updated; otherwise, false.</returns>
  41. <param name="dueTime">A <see cref="T:System.TimeSpan" /> representing the amount of time to delay before invoking the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed. Specify negative one (-1) milliseconds to prevent the timer from restarting. Specify zero (0) to restart the timer immediately. </param>
  42. <param name="period">The time interval between invocations of the callback method specified when the <see cref="T:System.Threading.Timer" /> was constructed. Specify negative one (-1) milliseconds to disable periodic signaling. </param>
  43. <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Timer" /> has already been disposed. </exception>
  44. <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter, in milliseconds, is less than -1. </exception>
  45. <exception cref="T:System.NotSupportedException">The <paramref name="dueTime" /> or <paramref name="period" /> parameter, in milliseconds, is greater than 4294967294. </exception>
  46. <filterpriority>2</filterpriority>
  47. </member>
  48. <member name="M:System.Threading.Timer.Dispose">
  49. <summary>Releases all resources used by the current instance of <see cref="T:System.Threading.Timer" />.</summary>
  50. <filterpriority>2</filterpriority>
  51. </member>
  52. <member name="T:System.Threading.TimerCallback">
  53. <summary>Represents the method that handles calls from a <see cref="T:System.Threading.Timer" />.</summary>
  54. <param name="state">An object containing application-specific information relevant to the method invoked by this delegate, or null. </param>
  55. <filterpriority>2</filterpriority>
  56. </member>
  57. </members>
  58. </doc>