Share via


ToolWindow Constructor

Initializes a new instance of the ToolWindow 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 Sub New ( _
    serviceProvider As IServiceProvider _
)
protected ToolWindow(
    IServiceProvider serviceProvider
)
protected:
ToolWindow(
    IServiceProvider^ serviceProvider
)
new : 
        serviceProvider:IServiceProvider -> ToolWindow
protected function ToolWindow(
    serviceProvider : IServiceProvider
)

Parameters

  • serviceProvider
    Type: IServiceProvider

    The service provider that retrieves shell services.

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