Show / Hide Table of Contents

# Class TimerTask

A Task that is run in a Timer instance either once or repeatedly.

##### Inheritance

System.Object
TimerTask

##### Inherited Members

System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

###### Namespace: Apache.NMS.ActiveMQ.Threads

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public abstract class TimerTask

### Constructors

| Improve this Doc View Source

#### TimerTask()

##### Declaration

    protected TimerTask()

### Properties

| Improve this Doc View Source

#### ScheduledExecutionTime

##### Declaration

    public DateTime ScheduledExecutionTime { get; }

##### Property Value

Type | Description
--- | ---
System.DateTime |

### Methods

| Improve this Doc View Source

#### Cancel()

##### Declaration

    public bool Cancel()

##### Returns

Type | Description
--- | ---
System.Boolean |

| Improve this Doc View Source

#### Run()

##### Declaration

    public abstract void Run()