_DTE.CommandBars Property
Gets a reference to the development environment's command bars.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property CommandBars As Object
Object CommandBars { get; }
property Object^ CommandBars {
Object^ get ();
}
abstract CommandBars : Object with get
function get CommandBars () : Object
Property Value
Type: System.Object
A CommandBars object.
Remarks
This class is a part of the Microsoft.VisualStudio.CommandBars namespace.
You can add or remove command bars to this collection by calling AddCommandBar. Please see the documentation for this method to find more information about command bars.
Examples
Sub CommandBarsExample()
MsgBox(DTE.CommandBars.Count)
End Sub
.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.