DialogContainerWithToolbar Constructor (IServiceProvider, Control, IOleCommandTarget)
Initializes a new instance DialogContainerWithToolbar with its contained control, and an IOleCommandTarget implementation that is in addition to the one owned by the OleMenuCommandService.
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)
'Déclaration
Public Sub New ( _
sp As IServiceProvider, _
contained As Control, _
parentCommandTarget As IOleCommandTarget _
)
'Utilisation
Dim sp As IServiceProvider
Dim contained As Control
Dim parentCommandTarget As IOleCommandTarget
Dim instance As New DialogContainerWithToolbar(sp, contained, _
parentCommandTarget)
public DialogContainerWithToolbar(
IServiceProvider sp,
Control contained,
IOleCommandTarget parentCommandTarget
)
public:
DialogContainerWithToolbar(
IServiceProvider^ sp,
Control^ contained,
IOleCommandTarget^ parentCommandTarget
)
new :
sp:IServiceProvider *
contained:Control *
parentCommandTarget:IOleCommandTarget -> DialogContainerWithToolbar
public function DialogContainerWithToolbar(
sp : IServiceProvider,
contained : Control,
parentCommandTarget : IOleCommandTarget
)
- sp
Type: System.IServiceProvider
The IServiceProvider.
- contained
Type: System.Windows.Forms.Control
The Control that is to be contained.
- parentCommandTarget
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
The parent IOleCommandTarget.
The DialogContainerWithToolbar command target implementation uses the additional command target to search command handlers when they are not found in its collection of handlers.
- 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.
DialogContainerWithToolbar Class
DialogContainerWithToolbar Members