Commands Methods


Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

System_CAPS_pubmethodAdd(String, Int32, Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Only.

System_CAPS_pubmethodAddCommandBar(String, vsCommandBarType, Object, Int32)

Creates a command bar that is saved and available the next time the environment is started.

System_CAPS_pubmethodAddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32)

Creates a named command that is saved by the environment and made available the next time the environment starts, even if the VSPackage is not loaded on environment startup.

Add-ins are now deprecated. For more information, see FAQ: Converting Add-ins to VSPackage Extensions.

System_CAPS_pubmethodCommandInfo(Object, String, Int32)

Returns the command GUID and ID associated with the given Microsoft.VisualStudio.CommandBars.CommandBar control.


Returns an enumerator for items in the Commands collection.

System_CAPS_pubmethodItem(Object, Int32)

Returns the indexed Command object.

System_CAPS_pubmethodRaise(String, Int32, Object, Object)

Executes the specified command.


Removes a command bar that was created with the AddCommandBar method.

Return to top