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

Mono.Unix.Native.NativeConvert.TryToMlockallFlags Method

Converts an OS-specific value to a Mono.Unix.Native.MlockallFlags. [Edit]

public static bool TryToMlockallFlags (int value, out MlockallFlags rval)

See Also

NativeConvert.FromMlockallFlags
NativeConvert.ToMlockallFlags
NativeConvert.TryFromMlockallFlags

Parameters

value
The OS-specific value to convert. [Edit]
rval
The managed equivalent value [Edit]

Returns

true if the conversion was successful; otherwise, false. [Edit]

Remarks

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

If successful, this method stores the managed equivalent value of value into rval. Otherwise, rval will contain a 0 cast to a Mono.Unix.Native.MlockallFlags.

The current conversion functions are unable to determine if a value in a [Flags]-marked enumeration does not exist on the current platform. As such, if value contains a flag value which the current platform doesn't support, it will not be present in the managed value returned.

This should only be a problem if valuewas not previously returned by NativeConvert.FromMlockallFlags.

[Edit]

Requirements

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