Condividi tramite


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.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)

Syntax

'Dichiarazione
Public Overridable Function GetLanguageService ( _
    fileExtension As String _
) As String
'Utilizzo
Dim instance As EditorFactory
Dim fileExtension As String
Dim returnValue As String

returnValue = instance.GetLanguageService(fileExtension)
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: 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

EditorFactory Members

Microsoft.VisualStudio.Package Namespace