WindowPane Constructor (IServiceProvider)
Initializes a new instance of WindowPane with the specified service provider.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
声明
Protected Sub New ( _
provider As IServiceProvider _
)
用法
Dim provider As IServiceProvider
Dim instance As New WindowPane(provider)
protected WindowPane(
IServiceProvider provider
)
protected:
WindowPane(
IServiceProvider^ provider
)
new :
provider:IServiceProvider -> WindowPane
protected function WindowPane(
provider : IServiceProvider
)
Parameters
- provider
Type: System.IServiceProvider
IServiceProvider. Should be nulla null reference (Nothing in Visual Basic).
Remarks
Use null for the IServiceProvider unless the instance of the pane must access shell services between the construction of the object and the call to SetSite.
If you do pass an instance of IServiceProvider to the constructor, it must not store the provider for a package or editor factory; the implementation of SetSite will change its value.
.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.