C# Class System.Timers.Timer

Inheritance: System.Windows.Threading.DispatcherTimer
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
MyTimerCallback void
UpdateTimer void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
MyTimerCallback ( object state ) : void
UpdateTimer ( ) : void

Method Details

BeginInit() public méthode

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

public BeginInit ( ) : void
Résultat void

Close() public méthode

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

public Close ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndInit() public méthode

Notifies the object that initialization is complete.

public EndInit ( ) : void
Résultat void

Start() public méthode

Starts the timing by setting to .

public Start ( ) : void
Résultat void

Stop() public méthode

Stops the timing by setting to .

public Stop ( ) : void
Résultat void

Timer() public méthode

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

public Timer ( ) : System.Threading
Résultat System.Threading

Timer() public méthode

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

public Timer ( double interval ) : System.Threading
interval double
Résultat System.Threading