IDebugSymbolProvider::GetTypeByName

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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 maps a symbol name to a symbol type.

Syntax

HRESULT GetTypeByName( 
   LPCOLESTR     pszClassName,
   NAME_MATCH    nameMatch,
   IDebugField** ppField
);
int GetTypeByName(
   string          pszClassName,
   NAME_MATCH      nameMatch,
   out IDebugField ppField
);

Parameters

pszClassName
[in] The symbol name.

nameMatch
[in] Selects the type of match, for example, case-sensitive. A value from the NAME_MATCH enumeration.

ppField
[out] Returns the symbol type as an IDebugField object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method is a generic version of GetClassTypeByName.

See also