Mono Class Library: Mono.Unix.Native.NativeConvert Overview | Members

Mono.Unix.Native.NativeConvert.TryFromSyslogFacility Method

Converts a Mono.Unix.Native.SyslogFacility enumeration value to an OS-specific value.

public static bool TryFromSyslogFacility (SyslogFacility value, out int rval)

See Also

NativeConvert.FromSyslogFacility
NativeConvert.ToSyslogFacility
NativeConvert.TryToSyslogFacility

Parameters

value
The managed value to convert.
rval
The OS-specific equivalent value.

Returns

true if the conversion was successful; otherwise, false.

Remarks

This is an exception-safe alternative to NativeConvert.FromSyslogFacility.

If successful, this method stores the OS-specific equivalent value of value into rval. Otherwise, rval will contain 0.

Requirements

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