IDebugCodeContext2::GetLanguageInfo

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

Gets the language information for this code context.

Syntax

HRESULT GetLanguageInfo( 
   BSTR* pbstrLanguage,
   GUID* pguidLanguage
);
int GetLanguageInfo( 
   ref string pbstrLanguage,
   ref Guid pguidLanguage
);

Parameters

pbstrLanguage
[in, out] Returns a string that contains the name of the language, such as "C++."

pguidLanguage
[in, out] Returns the GUID for the language of the code context, for example, guidCPPLang.

Return Value

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

Remarks

At least one of the parameters must return a non-null value.

See also