Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies the drop target to handle drop operations over the toolbar area and the command target to be used for the commands on it.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Function AddToolbar3 ( _
dwLoc As VSTWT_LOCATION, _
ByRef pguid As Guid, _
dwId As UInteger, _
pDropTarget As IDropTarget, _
pCommandTarget As IOleCommandTarget _
) As Integer
int AddToolbar3(
VSTWT_LOCATION dwLoc,
ref Guid pguid,
uint dwId,
IDropTarget pDropTarget,
IOleCommandTarget pCommandTarget
)
int AddToolbar3(
[InAttribute] VSTWT_LOCATION dwLoc,
[InAttribute] Guid% pguid,
[InAttribute] unsigned int dwId,
[InAttribute] IDropTarget^ pDropTarget,
[InAttribute] IOleCommandTarget^ pCommandTarget
)
abstract AddToolbar3 :
dwLoc:VSTWT_LOCATION *
pguid:Guid byref *
dwId:uint32 *
pDropTarget:IDropTarget *
pCommandTarget:IOleCommandTarget -> int
function AddToolbar3(
dwLoc : VSTWT_LOCATION,
pguid : Guid,
dwId : uint,
pDropTarget : IDropTarget,
pCommandTarget : IOleCommandTarget
) : int
Parameters
dwLoc
Type: Microsoft.VisualStudio.Shell.Interop.VSTWT_LOCATION[in] Specifies the location of the toolbar within the tool window. Values are taken from the VSTWT_LOCATION enumeration.
pguid
Type: Guid%[in] The GUID of the toolbar's menu group.
dwId
Type: UInt32[in] The identifier that, in combination with pguid, identifies the toolbar to be added.
pDropTarget
Type: Microsoft.VisualStudio.OLE.Interop.IDropTarget[in, optional] The drop target.
pCommandTarget
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget[in, optional] The command target. If this parameter is null, the toolbar host's own command target is used.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
.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.