DTE2.CommandBars Property
Visual Studio 2015
Gets a reference to the development environment's CommandBars object.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Implements
_DTE.CommandBarsThe CommandBars object is a part of Microsoft.VisualStudio.Commandbars.
In Visual Studio 2005, CommandBars returns an object (actually, an IDispatch) instead of a CommandBars instance as it did in previous versions of Visual Studio. When programming against CommandBars in Visual C#, an exception occurs if the index in DTE2.CommandBars.this[object index] is not found in the CommandBars container.
Show: