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

Mono.Unix.UnixSignal Constructor

Creates and initializes a Mono.Unix.UnixSignal class instance.

public UnixSignal (Mono.Unix.Native.Signum signum)

Parameters

signum
A Mono.Unix.Native.Signum value specifying which Unix signal this instance should count.

Exceptions

TypeReason
ArgumentException The internal signal handler could not be registered.
ArgumentOutOfRangeExceptionsignum is not a valid signal value.

Remarks

This constructor initializes the UnixSignal.Signum property of the new instance using signum.

Once this constructor completes execution, all signal emissions between the completion of the constructor and the invocation of System.Threading.WaitHandle.Close will be counted, updating the UnixSignal.Count property.

Requirements

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