UtilWin32FailFastIfFalse Method
Evaluates the supplied unmanaged return value and, if it is equal to
,
immediately terminates the calling process after writing the corresponding Win32 error message to the Windows Application event log.
This exception uses the last Win32 error code (
GetLastWin32Error) as error message.
Namespace: DevCase.Win32Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void FailFastIfFalse(
bool returnValue
)
Public Shared Sub FailFastIfFalse (
returnValue As Boolean
)
Dim returnValue As Boolean
UtilWin32.FailFastIfFalse(returnValue)
public:
static void FailFastIfFalse(
bool returnValue
)
static member FailFastIfFalse :
returnValue : bool -> unit
No code example is currently available or this language may not be supported.
Parameters
- returnValue Boolean
-
The return value to test.