C# Class System.Timers.Timer

Inheritance: System.Windows.Threading.DispatcherTimer
Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
MyTimerCallback void
UpdateTimer void

Public Methods

Method Description
BeginInit ( ) : void

Notifies the object that initialization is beginning and tells it to stand by.

Close ( ) : void

Disposes of the resources (other than memory) used by the .

EndInit ( ) : void

Notifies the object that initialization is complete.

Start ( ) : void

Starts the timing by setting to .

Stop ( ) : void

Stops the timing by setting to .

Timer ( ) : System.Threading

Initializes a new instance of the class, with the properties set to initial values.

Timer ( double interval ) : System.Threading

Initializes a new instance of the class, setting the property to the specified period.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
MyTimerCallback ( object state ) : void
UpdateTimer ( ) : void

Method Details

BeginInit() public method

Notifies the object that initialization is beginning and tells it to stand by.

public BeginInit ( ) : void
return void

Close() public method

Disposes of the resources (other than memory) used by the .

public Close ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndInit() public method

Notifies the object that initialization is complete.

public EndInit ( ) : void
return void

Start() public method

Starts the timing by setting to .

public Start ( ) : void
return void

Stop() public method

Stops the timing by setting to .

public Stop ( ) : void
return void

Timer() public method

Initializes a new instance of the class, with the properties set to initial values.

public Timer ( ) : System.Threading
return System.Threading

Timer() public method

Initializes a new instance of the class, setting the property to the specified period.

public Timer ( double interval ) : System.Threading
interval double
return System.Threading