共用方式為


CommandBarsClass.AddEx Method

Adds a command bar, including its protection level.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'宣告
Public Overridable Function AddEx ( _
    TbidOrName As Object, _
    Position As Object, _
    MenuBar As Object, _
    Temporary As Object, _
    TbtrProtection As Object _
) As CommandBar
'用途
Dim instance As CommandBarsClass
Dim TbidOrName As Object
Dim Position As Object
Dim MenuBar As Object
Dim Temporary As Object
Dim TbtrProtection As Object
Dim returnValue As CommandBar

returnValue = instance.AddEx(TbidOrName, _
    Position, MenuBar, Temporary, TbtrProtection)
public virtual CommandBar AddEx(
    Object TbidOrName,
    Object Position,
    Object MenuBar,
    Object Temporary,
    Object TbtrProtection
)
public:
virtual CommandBar^ AddEx(
    [InAttribute] Object^ TbidOrName, 
    [InAttribute] Object^ Position, 
    [InAttribute] Object^ MenuBar, 
    [InAttribute] Object^ Temporary, 
    [InAttribute] Object^ TbtrProtection
)
abstract AddEx : 
        TbidOrName:Object * 
        Position:Object * 
        MenuBar:Object * 
        Temporary:Object * 
        TbtrProtection:Object -> CommandBar 
override AddEx : 
        TbidOrName:Object * 
        Position:Object * 
        MenuBar:Object * 
        Temporary:Object * 
        TbtrProtection:Object -> CommandBar 
public function AddEx(
    TbidOrName : Object, 
    Position : Object, 
    MenuBar : Object, 
    Temporary : Object, 
    TbtrProtection : Object
) : CommandBar

Parameters

  • MenuBar
    Type: System.Object
    true if the command bar is a menu bar, otherwise false.
  • Temporary
    Type: System.Object
    true if the bar is temporary, otherwise false.

Return Value

Type: Microsoft.VisualStudio.CommandBars.CommandBar
The newly-added CommandBar.

Implements

_CommandBars.AddEx(Object, Object, Object, Object, Object)

.NET Framework Security

See Also

Reference

CommandBarsClass Class

CommandBarsClass Members

Microsoft.VisualStudio.CommandBars Namespace