共用方式為


ToolWindow Constructor

Initializes a new instance of the ToolWindow class.

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

Syntax

'宣告
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