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 (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Public Overridable Function GetLanguageName ( _
<OutAttribute> ByRef name As String _
) As Integer
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: String%[out] Returns the name of the language.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.