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

System.Threading.Timer.Dispose Method

Releases the resources held by the current instance. [Edit]

public bool Dispose (WaitHandle notifyObject)

Parameters

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

Returns

true if the call succeeds; otherwise, false. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionnotifyObject is null. [Edit]

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.

[Edit]

Requirements

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