Delen via


ToolWindow Constructor

Initializes a new instance of the ToolWindow class.

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

Syntax

'Declaration
Protected Sub New ( _
    serviceProvider As IServiceProvider _
)
protected ToolWindow(
    IServiceProvider serviceProvider
)
protected:
ToolWindow(
    IServiceProvider^ serviceProvider
)
new : 
        serviceProvider:IServiceProvider -> ToolWindow
protected function ToolWindow(
    serviceProvider : IServiceProvider
)

Parameters

Examples

The following example creates a tool window that is named CustomToolWindow and defines the service provider for the window.

public CustomToolWindow(IServiceProvider serviceProvider) : base(serviceProvider)
{ 
}

.NET Framework Security

See Also

Reference

ToolWindow Class

Microsoft.VisualStudio.Modeling.Shell Namespace