Mono.Unix.Native.NativeConvert.TryToPosixFadviseAdvice Method
Converts an OS-specific value to a Mono.Unix.Native.PosixFadviseAdvice.

Syntax

public static bool TryToPosixFadviseAdvice (int value, out PosixFadviseAdvice rval)

See Also

NativeConvert.FromPosixFadviseAdvice
NativeConvert.ToPosixFadviseAdvice
NativeConvert.TryFromPosixFadviseAdvice

Parameters

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

Returns

true if the conversion was successful; otherwise, false.

Remarks

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

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.PosixFadviseAdvice.

Requirements

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