Freigeben über


ModelingPackage.Initialize Method

Initializes the ModelingPackage class.

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

Syntax

'Declaration
Protected Overrides Sub Initialize
protected override void Initialize()
protected:
virtual void Initialize() override
abstract Initialize : unit -> unit 
override Initialize : unit -> unit 
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

Microsoft.VisualStudio.Modeling.Shell Namespace