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
'Declaração
Public Overridable Function AddEx ( _
TbidOrName As Object, _
Position As Object, _
MenuBar As Object, _
Temporary As Object, _
TbtrProtection As Object _
) As CommandBar
public virtual CommandBar AddEx(
Object TbidOrName,
Object Position,
Object MenuBar,
Object Temporary,
Object TbtrProtection
)
Parameters
- TbidOrName
Type: System.Object
The name of the command bar.
- Position
Type: System.Object
The MsoBarPosition.
- 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.
- TbtrProtection
Type: System.Object
The MsoBarProtection.
Return Value
Type: Microsoft.VisualStudio.CommandBars.CommandBar
The newly-added CommandBar.
Implements
_CommandBars.AddEx(Object, Object, Object, Object, Object)
.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.