Compartir a través de


IVsToolbarTrayHost.AddToolbar Method

Adds a tool bar to the tray.

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

Syntax

'Declaration
Function AddToolbar ( _
    ByRef pGuid As Guid, _
    dwId As UInteger _
) As Integer
int AddToolbar(
    ref Guid pGuid,
    uint dwId
)
int AddToolbar(
    [InAttribute] Guid% pGuid, 
    [InAttribute] unsigned int dwId
)
abstract AddToolbar : 
        pGuid:Guid byref * 
        dwId:uint32 -> int
function AddToolbar(
    pGuid : Guid, 
    dwId : uint
) : int

Parameters

  • pGuid
    Type: Guid%

    [in] The GUID of the tool bar to add.

  • dwId
    Type: UInt32

    [in] The ID of the toolbar to add.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsToolbarTrayHost Interface

Microsoft.VisualStudio.Shell.Interop Namespace