System::Threading::Timer::Timer constructor
Contents
[
Hide
]Timer::Timer(TimerCallback) constructor
Constructor.
System::Threading::Timer::Timer(TimerCallback callback)
| Parameter | Type | Description |
|---|---|---|
| callback | TimerCallback | Function to be called by the timer. |
See Also
- Typedef TimerCallback
- Class Timer
- Namespace System::Threading
- Library Aspose.Page for C++
Timer::Timer(TimerCallback, const System::SharedPtr<System::Object>&, int64_t, int64_t) constructor
Constructor.
System::Threading::Timer::Timer(TimerCallback callback, const System::SharedPtr<System::Object> &state, int64_t dueTime, int64_t period)
| Parameter | Type | Description |
|---|---|---|
| callback | TimerCallback | Function to be called by the timer. |
| state | const System::SharedPtr<System::Object>& | Callback function argument. |
| dueTime | int64_t | Timeout before first invocation of callback function, in milliseconds; negative values doesn’t schedule timer after creation so it can be re-scheduled later. |
| period | int64_t | Timeout between consequental invocations of callback function, in milliseconds; non-positive values mean that timer should only be executed once. |
See Also
- Typedef TimerCallback
- Typedef SharedPtr
- Class Object
- Class Timer
- Namespace System::Threading
- Library Aspose.Page for C++
Timer::Timer(TimerCallback, const System::SharedPtr<System::Object>&, System::TimeSpan, System::TimeSpan) constructor
Constructor.
System::Threading::Timer::Timer(TimerCallback callback, const System::SharedPtr<System::Object> &state, System::TimeSpan dueTime, System::TimeSpan period)
| Parameter | Type | Description |
|---|---|---|
| callback | TimerCallback | Function to be called by the timer. |
| state | const System::SharedPtr<System::Object>& | Callback function argument. |
| dueTime | System::TimeSpan | Timeout before first invocation of callback function; negative values doesn’t schedule timer after creation so it can be re-scheduled later. |
| period | System::TimeSpan | Timeout between consequental invocations of callback function; non-positive values mean that timer should only be executed once. |
See Also
- Typedef TimerCallback
- Typedef SharedPtr
- Class Object
- Class TimeSpan
- Class Timer
- Namespace System::Threading
- Library Aspose.Page for C++