ExtendedTimer Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides a mechanism for executing methods at specified intervals or on specific events.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT..::..ExtendedTimer

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public NotInheritable Class ExtendedTimer _
    Implements IDisposable
public sealed class ExtendedTimer : IDisposable
public ref class ExtendedTimer sealed : IDisposable
[<Sealed>]
type ExtendedTimer =  
    class
        interface IDisposable
    end
public final class ExtendedTimer implements IDisposable

The ExtendedTimer type exposes the following members.

Constructors

  Name Description
Public method ExtendedTimer(TimerCallback, Object, ExtendedTimer. . :: . .TimeEvents) Initializes a new instance of the ExtendedTimer class.
Public method ExtendedTimer(TimerCallback, Object, DateTime, TimeSpan) Initializes a new instance of the ExtendedTimer class, using DateTime and TimeSpan values to measure time intervals.
Public method ExtendedTimer(TimerCallback, Object, Int32, Int32) Initializes a new instance of the ExtendedTimer class, using 32-bit signed integers to measure time intervals.
Public method ExtendedTimer(TimerCallback, Object, TimeSpan, TimeSpan) Initializes a new instance of the ExtendedTimer class, using TimeSpan values to measure time intervals.

Top

Properties

  Name Description
Public property LastExpiration Gets the TimeSpan value of the last expiration of the current timer.

Top

Methods

  Name Description
Public method Change(DateTime, TimeSpan) Changes the start time and the interval between method invocations for a timer, using DateTime and TimeSpan values to measure time intervals.
Public method Change(Int32, Int32) Changes the start time and the interval between method invocations for a timer, using 32-bit signed integers to measure time intervals.
Public method Change(TimeSpan, TimeSpan) Changes the start time and the interval between method invocations for a timer, using TimeSpan values to measure time intervals.
Public method Dispose Releases all resources used by the current instance of the ExtendedTimer class.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT Namespace