ModelingPackage.Initialize Method
Initializes the ModelingPackage class.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.