共用方式為


IVsLanguageInfo.GetLanguageName(String) Method

Definition

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.

Applies to