共用方式為


IVsUIShell4.SetupToolbar2 Method

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

Syntax

'宣告
Function SetupToolbar2 ( _
    hwnd As IntPtr, _
    ptwt As IVsToolWindowToolbar, _
    pCmdTarget As IOleCommandTarget, _
    <OutAttribute> ByRef pptwth As IVsToolWindowToolbarHost _
) As Integer
'用途
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

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

IVsUIShell4 Interface

IVsUIShell4 Members

Microsoft.VisualStudio.Shell.Interop Namespace