Commands2 Interface

Contains all commands, in the form of Command objects, in the environment.

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

[GuidAttribute("7EAA857B-2356-494B-9E13-0F6EEFA86E43")]
public interface Commands2 : Commands

The Commands2 type exposes the following members.

  NameDescription
Public propertyCountGets a value indicating the number of objects in the Commands collection.
Public propertyDTEGets the top-level extensibility object.
Public propertyParentGets the immediate parent object of a Commands collection.
Top

  NameDescription
Public methodAddInfrastructure. Microsoft internal use only.
Public methodAddCommandBarCreates a command bar that is saved and available the next time the environment is started.
Public methodAddNamedCommandCreates a named command that is saved by the environment and made available the next time the environment starts, even if the Add-in is not loaded on environment startup.
Public methodAddNamedCommand2Creates a named command that is saved by the environment and made available the next time the environment starts, even if the Add-in is not loaded on environment startup.
Public methodCommandInfoReturns the command GUID and ID associated with the given CommandBar control.
Public methodGetEnumeratorGets an enumerator for items in the Commands collection.
Public methodItemReturns an indexed member of a collection.
Public methodRaiseExecutes the specified command.
Public methodRemoveCommandBarRemoves a command bar that was created with the AddCommandBar method.
Public methodUpdateCommandUIForces a refresh of the command UI state.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft