Mono Class Library: System.Threading.Timer Overview | Members

System.Threading.Timer.Dispose Method

Releases the resources held by the current instance.

public bool Dispose (WaitHandle notifyObject)

Parameters

notifyObject
Specifies a System.Threading.WaitHandle to be signaled when the timer has been disposed of.

Returns

true if the call succeeds; otherwise, false.

Exceptions

TypeReason
ArgumentNullExceptionnotifyObject is null.

Remarks

When this method completes, the System.Threading.WaitHandle specified by notifyObject is signaled.

This method calls GC.SuppressFinalize(object) to prevent the garbage collector from finalizing the current instance.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0