共用方式為


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

Syntax

'宣告
Public Overridable Function GetLanguageService ( _
    fileExtension As String _
) As String
public virtual string GetLanguageService(
    string fileExtension
)

Parameters

  • fileExtension
    Type: System.String
    The file extension for the desired language service.

Return Value

Type: System.String
The GUID of the language service.

.NET Framework Security

See Also

Reference

EditorFactory Class

Microsoft.VisualStudio.Package Namespace