LanguageService.GetLanguageName Method

Returns the name of the language this language service handles.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Function GetLanguageName ( _
    <OutAttribute> ByRef name As String _
) As Integer
'Usage
Dim instance As LanguageService 
Dim name As String 
Dim returnValue As Integer 

returnValue = instance.GetLanguageName(name)
public virtual int GetLanguageName(
    out string name
)
public:
virtual int GetLanguageName(
    [OutAttribute] String^% name
)
public function GetLanguageName(
    name : String
) : int

Parameters

  • name
    Type: System.String%

    [out] Returns the name of the language.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsLanguageInfo.GetLanguageName(String%)

Remarks

The base method always returns the value returned by the Name property (which must be implemented in a derived class).

.NET Framework Security

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace