Share via


IDebugEnumField::GetValueFromStringCaseInsensitive

This method uses a case-insensitive search to return the value associated with the name of an enumeration constant.

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 IDebugEnumField::GetValueFromString.

See Also

Reference

IDebugEnumField

IDebugEnumField::GetValueFromString