Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds a command bar.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'Declaration
Function Add ( _
Name As Object, _
Position As Object, _
MenuBar As Object, _
Temporary As Object _
) As CommandBar
'Usage
Dim instance As _CommandBars
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)
CommandBar Add(
Object Name,
Object Position,
Object MenuBar,
Object Temporary
)
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
function Add(
Name : Object,
Position : Object,
MenuBar : Object,
Temporary : Object
) : CommandBar
Parameters
- Name
Type: System.Object
[in, optional] The name of the command bar. If this parameter is not specified, a unique name is generated.
- Position
Type: System.Object
[in, optional] The MsoBarPosition of the new command bar. If this parameter is not specified the default value is msoBarFloating.
- MenuBar
Type: System.Object
[in, optional] Whether the new bar is a menu or not. Visual Studio does not support adding menus with this method; the value must be false.
- Temporary
Type: System.Object
[in, optional] Whether the new control will be present in future sessions of Visual Studio. If this parameter is not specified, the default value is false.
Return Value
Type: Microsoft.VisualStudio.CommandBars.CommandBar
The newly-added CommandBar.
.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.