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
- pGuid
Type: System.Guid%
- dwId
Type: System.UInt32
- pDropTarget
Type: Microsoft.VisualStudio.OLE.Interop.IDropTarget
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.
See Also
Reference
IVsToolWindowToolbarHost2 Interface