LanguageService.GetLanguageName Method

Returns the name of the language this language service handles.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

声明
Public Overridable Function GetLanguageName ( _
    <OutAttribute> ByRef name As String _
) As Integer
用法
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
)
abstract GetLanguageName : 
        name:string byref -> int 
override GetLanguageName : 
        name:string byref -> int 
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