UtilWin32FailIfFalse Method
Evaluates the supplied unmanaged return value and, if it is equal to
,
throws the corresponding
Win32Exception.
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 bool FailIfFalse(
bool returnValue
)
Public Shared Function FailIfFalse (
returnValue As Boolean
) As Boolean
Dim returnValue As Boolean
Dim returnValue As Boolean
returnValue = UtilWin32.FailIfFalse(returnValue)
public:
static bool FailIfFalse(
bool returnValue
)
static member FailIfFalse :
returnValue : bool -> bool
No code example is currently available or this language may not be supported.
- returnValue Boolean
-
The return value to test.
Boolean
The supplied return value.