LanguageService.Initialize Method ()


Called to initialize the language service.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public virtual void Initialize()

This method allows you to perform initialization tasks specific to your language service. If you have specific initialization that has to be accomplished, you must derive a class from the LanguageService class and implement this method. If you do not have any special initialization needs, do not implement this method on your derived class.


If you implement this method, you must call the base class version of this method before doing any other initialization.

The base method creates a Windows Forms control to control background tasks such as parsing.

using Microsoft.VisualStudio.Package;

namespace MyLanguagePackage
    public class MyLanguageService : LanguageService
        public Initialize()
            // Do your language-specified initialization here
Return to top