Delen via


EditorFactory.GetLanguageService Method

Gets the GUID of the language service registered for this file extension under the registry key HKLM\Software\Microsoft\Visual Studio\10.0\Languages\File Extensions.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.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

'Declaration
Public Overridable Function GetLanguageService ( _
    fileExtension As String _
) As String
public virtual string GetLanguageService(
    string fileExtension
)
public:
virtual String^ GetLanguageService(
    String^ fileExtension
)
abstract GetLanguageService : 
        fileExtension:string -> string  
override GetLanguageService : 
        fileExtension:string -> string
public function GetLanguageService(
    fileExtension : String
) : String

Parameters

  • fileExtension
    Type: String

    The file extension for the desired language service.

Return Value

Type: String
The GUID of the language service.

.NET Framework Security

See Also

Reference

EditorFactory Class

Microsoft.VisualStudio.Package Namespace