共用方式為


IVsToolWindowToolbarHost2.AddToolbar2 Method

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

Syntax

'宣告
Function AddToolbar2 ( _
    dwLoc As VSTWT_LOCATION, _
    ByRef pGuid As Guid, _
    dwId As UInteger, _
    pDropTarget As IDropTarget _
) As Integer
'用途
Dim instance As IVsToolWindowToolbarHost2
Dim dwLoc As VSTWT_LOCATION
Dim pGuid As Guid
Dim dwId As UInteger
Dim pDropTarget As IDropTarget
Dim returnValue As Integer

returnValue = instance.AddToolbar2(dwLoc, _
    pGuid, dwId, pDropTarget)
int AddToolbar2(
    VSTWT_LOCATION dwLoc,
    ref Guid pGuid,
    uint dwId,
    IDropTarget pDropTarget
)
int AddToolbar2(
    [InAttribute] VSTWT_LOCATION dwLoc, 
    [InAttribute] Guid% pGuid, 
    [InAttribute] unsigned int dwId, 
    [InAttribute] IDropTarget^ pDropTarget
)
abstract AddToolbar2 : 
        dwLoc:VSTWT_LOCATION * 
        pGuid:Guid byref * 
        dwId:uint32 * 
        pDropTarget:IDropTarget -> int 
function AddToolbar2(
    dwLoc : VSTWT_LOCATION, 
    pGuid : Guid, 
    dwId : uint, 
    pDropTarget : IDropTarget
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

IVsToolWindowToolbarHost2 Interface

IVsToolWindowToolbarHost2 Members

Microsoft.VisualStudio.Shell.Interop Namespace