다음을 통해 공유


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.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

‘선언
Public Overridable Function GetLanguageName ( _
    <OutAttribute> ByRef name As String _
) As Integer
public virtual int GetLanguageName(
    out string name
)

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

Microsoft.VisualStudio.Package Namespace