GetBoolean method
- Last UpdatedJul 23, 2024
- 1 minute read
Returns the value stored in the MxValue as a VARIANT_BOOL.
Class
IMxValue
Syntax
[C#]
bool GetBoolean();
[Visual C++]
HRESULT GetBoolean(
[out, retval] VARIANT_BOOL *pVal
);
Parameters
pVal
Receives the value.
Returns
S_OK - Success
MX_E_ConversionNotSupported - The stored value is a type that cannot be converted to VARIANT_BOOL.
MX_E_UnableToConvertString - The string held in the MxValue is not "true" or "false".
E_POINTER - An invalid pointer was passed in.