Share via


ModelingPackage.Initialize Method

Initializes the ModelingPackage class.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
Protected Overrides Sub Initialize
'Usage
Me.Initialize()
protected override void Initialize()
protected:
virtual void Initialize() override
protected override function Initialize()

Remarks

When the ModelingPackage class is initialized, this method adds the tool windows, adds any provided services, and registers the editor.

Examples

The following example initializes the ModelingPackage class and registers a custom tool window.

protected override void Initialize()
  {
     //Initializes the base class for the package 
     base.Initialize();

     //Registers a custom tool window
     this.AddToolWindow(typeof(CustomToolWindow));
  }

.NET Framework Security

See Also

Reference

ModelingPackage Class

ModelingPackage Members

Microsoft.VisualStudio.Modeling.Shell Namespace