IVsLanguageInfo.GetLanguageName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the name of the programming language.
public:
int GetLanguageName([Runtime::InteropServices::Out] System::String ^ % bstrName);
int GetLanguageName([Runtime::InteropServices::Out] std::wstring const & & bstrName);
public int GetLanguageName (out string bstrName);
abstract member GetLanguageName : string -> int
Public Function GetLanguageName (ByRef bstrName As String) As Integer
Parameters
- bstrName
- String
[out] Returns a BSTR that contains the language name.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsLanguageInfo::GetLanguageName(
[out] BSTR *bstrName
);
Return the name of the language, such as "HTML" or "C++".
Note
The name returned from this method must be the same name used when registering the language service with Visual Studio.