Share via


RefactoringPreviewGroup.RegisterLanguageService Method

Associates a language service with a file extension.

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

Syntax

'Declaration
Public Sub RegisterLanguageService ( _
    fileExtension As String, _
    languageService As Guid _
)
'Usage
Dim instance As RefactoringPreviewGroup
Dim fileExtension As String
Dim languageService As Guid

instance.RegisterLanguageService(fileExtension, _
    languageService)
public void RegisterLanguageService(
    string fileExtension,
    Guid languageService
)
public:
void RegisterLanguageService(
    String^ fileExtension, 
    Guid languageService
)
public function RegisterLanguageService(
    fileExtension : String, 
    languageService : Guid
)
member RegisterLanguageService : 
        fileExtension:string * 
        languageService:Guid -> unit 

Parameters

  • fileExtension
    Type: System.String
    The file extension for which the language service is being registered
  • languageService
    Type: System.Guid
    The language service that will be used to display files with the specified file extension

Remarks

The language service is used in the Preview window to display the file with the appropriate syntax highlighting.

.NET Framework Security

See Also

Reference

RefactoringPreviewGroup Class

RefactoringPreviewGroup Members

Microsoft.VisualStudio.Data.Schema.Project.Refactoring Namespace