_DTE.CommandBars Property
Gets a reference to the development environment's CommandBars object.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property CommandBars As CommandBars
'Usage
Dim instance As _DTE
Dim value As CommandBars
value = instance.CommandBars
CommandBars CommandBars { get; }
property CommandBars^ CommandBars {
CommandBars^ get ();
}
function get CommandBars () : CommandBars
Property Value
Type: CommandBars
A Microsoft.VisualStudio.CommandBars object.
Remarks
The CommandBars object is a part of the Microsoft.VisualStudio.CommandBars namespace. Documentation for this namespace is available on the MSDN website at https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.commandbars.aspx.
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.