[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets a reference to the development environment's CommandBars object.
Assembly: EnvDTE80 (in EnvDTE80.dll)
The CommandBars object is a part of Microsoft.VisualStudio.Commandbars.
In Visual Studio 2005, returns an object (actually, an IDispatch) instead of a CommandBars instance as it did in previous versions of Visual Studio. When programming against in Visual C#, an exception occurs if the index in DTE2.CommandBars.this[object index] is not found in the CommandBars container.
- 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.