Mono Class Library: Mono.Unix.UnixSignal Overview | Members

Mono.Unix.UnixSignal.Dispose Method

Cleanup all unmanaged resources.

protected override void Dispose (bool disposing)

Parameters

disposing
A bool; if true, then this invocation is due to a System.Threading.WaitHandle.Close call; if false, this invocation is from within the finalizer.

Remarks

Operation
This method releases all unmanaged resources held by the current instance. When disposing is true, this method releases all resources held by any managed objects referenced by the current instance. This method invokes the Dispose() method of each referenced object.
Note to Inheritors
Override this mthod to dispose of resources allocated by types derived from Mono.Unix.UnixSignal. When overriding UnixSignal.Dispose(bool), be careful not to reference objects that have been previously disposed an earlier call to Dispose or Close. Dispose can be called multiple times by other objects.
Usage
This method is called by the protected System.Threading.WaitHandle.Dispose(bool) method and the object.Finalize method. Dispose() invokes this method with the disposing parameter set to true. object.Finalize invokes Dispose with disposing set to false.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0