IDebugEnumField::GetValueFromStringCaseInsensitive
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
This method uses a case-insensitive search to return the value associated with the name of an enumeration constant.
Syntax
HRESULT GetValueFromStringCaseInsensitive(
LPCOLESTR pszValue,
ULONGLONG* pvalue
);
int GetValueFromStringCaseInsensitive(
string pszValue,
out ulong pValue
);
Parameters
pszValue
[in] A string specifying the name for which to get the value. Note that for C++, this is a wide character string.
pValue
[out] Returns the associated numerical value.
Return Value
If successful, returns S_OK
; otherwise, returns S_FALSE
, if the name is not part of the enumeration, or an error code.
Remarks
This method is case-insensitive. If a case-sensitive search is needed (for example, in a language such as C++ where names are case-sensitive), use GetValueFromString.