IVsUIShell4.SetupToolbar2 Method
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaración
Function SetupToolbar2 ( _
hwnd As IntPtr, _
ptwt As IVsToolWindowToolbar, _
pCmdTarget As IOleCommandTarget, _
<OutAttribute> ByRef pptwth As IVsToolWindowToolbarHost _
) As Integer
'Uso
Dim instance As IVsUIShell4
Dim hwnd As IntPtr
Dim ptwt As IVsToolWindowToolbar
Dim pCmdTarget As IOleCommandTarget
Dim pptwth As IVsToolWindowToolbarHost
Dim returnValue As Integer
returnValue = instance.SetupToolbar2(hwnd, _
ptwt, pCmdTarget, pptwth)
int SetupToolbar2(
IntPtr hwnd,
IVsToolWindowToolbar ptwt,
IOleCommandTarget pCmdTarget,
out IVsToolWindowToolbarHost pptwth
)
int SetupToolbar2(
[InAttribute] IntPtr hwnd,
[InAttribute] IVsToolWindowToolbar^ ptwt,
[InAttribute] IOleCommandTarget^ pCmdTarget,
[OutAttribute] IVsToolWindowToolbarHost^% pptwth
)
abstract SetupToolbar2 :
hwnd:IntPtr *
ptwt:IVsToolWindowToolbar *
pCmdTarget:IOleCommandTarget *
pptwth:IVsToolWindowToolbarHost byref -> int
function SetupToolbar2(
hwnd : IntPtr,
ptwt : IVsToolWindowToolbar,
pCmdTarget : IOleCommandTarget,
pptwth : IVsToolWindowToolbarHost
) : int
Parameters
- hwnd
Type: System.IntPtr
- pCmdTarget
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget
Return Value
Type: System.Int32
.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.