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
serviceProvider
Type: System.IServiceProviderThe 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
- 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.