Skip to content

Applies to

netstandard2.0

IDisposable StartTimer(Action<object?> action, object? state, TimeSpan dueTime)

Summary: Queues a method for execution at the specified relative time.

Parameters

NameTypeDescription
actionActionMethod to execute.
stateobject?State to pass to the method.
dueTimeTimeSpanTime to execute the method on.

Returns: IDisposable -- Disposable object that can be used to stop the timer.