Share via


RefactoringPreviewGroup.RegisterLanguageService Method

Registers a language service for a specified file name extension.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Refactoring
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
Public Sub RegisterLanguageService ( _
    fileExtension As String, _
    languageService As Guid _
)
public void RegisterLanguageService(
    string fileExtension,
    Guid languageService
)
public:
void RegisterLanguageService(
    String^ fileExtension, 
    Guid languageService
)
member RegisterLanguageService : 
        fileExtension:string * 
        languageService:Guid -> unit 
public function RegisterLanguageService(
    fileExtension : String, 
    languageService : Guid
)

Parameters

  • fileExtension
    Type: System.String
    The file name extension for which you register a language service.
  • languageService
    Type: System.Guid
    The GUID of the language service.

Remarks

This language service is used in the preview window to display the file and the appropriate syntax highlight.

.NET Framework Security

See Also

Reference

RefactoringPreviewGroup Class

Microsoft.VisualStudio.Data.Schema.Package.Refactoring Namespace