CommandBarsClass.Add Method
Adds a command bar.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'Dichiarazione
Public Overridable Function Add ( _
Name As Object, _
Position As Object, _
MenuBar As Object, _
Temporary As Object _
) As CommandBar
'Utilizzo
Dim instance As CommandBarsClass
Dim Name As Object
Dim Position As Object
Dim MenuBar As Object
Dim Temporary As Object
Dim returnValue As CommandBar
returnValue = instance.Add(Name, Position, _
MenuBar, Temporary)
public virtual CommandBar Add(
Object Name,
Object Position,
Object MenuBar,
Object Temporary
)
public:
virtual CommandBar^ Add(
[InAttribute] Object^ Name,
[InAttribute] Object^ Position,
[InAttribute] Object^ MenuBar,
[InAttribute] Object^ Temporary
)
abstract Add :
Name:Object *
Position:Object *
MenuBar:Object *
Temporary:Object -> CommandBar
override Add :
Name:Object *
Position:Object *
MenuBar:Object *
Temporary:Object -> CommandBar
public function Add(
Name : Object,
Position : Object,
MenuBar : Object,
Temporary : Object
) : CommandBar
Parameters
- Name
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.
Return Value
Type: Microsoft.VisualStudio.CommandBars.CommandBar
The newly-added CommandBar.
Implements
_CommandBars.Add(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.