Commands2 Commands2 Commands2 Commands2 Commands2 Commands2 Interface

Definition

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

public interface class Commands2 : EnvDTE::Commands
public interface class Commands2 : EnvDTE::Commands
__interface Commands2 : EnvDTE::Commands
[System.Runtime.InteropServices.Guid("7EAA857B-2356-494B-9E13-0F6EEFA86E43")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface Commands2 : EnvDTE.Commands
type Commands2 = interface
    interface Commands
Public Interface Commands2
Implements Commands
Attributes
Implements

Properties

Count Count Count Count Count Count

Gets a value indicating the number of objects in the Commands collection.

DTE DTE DTE DTE DTE DTE

Gets the top-level extensibility object.

Parent Parent Parent Parent Parent Parent

Gets the immediate parent object of a Commands collection.

Methods

Add(String, Int32, Object) Add(String, Int32, Object) Add(String, Int32, Object) Add(String, Int32, Object) Add(String, Int32, Object) Add(String, Int32, Object)

Microsoft internal use only.

AddCommandBar(String, vsCommandBarType, Object, Int32) AddCommandBar(String, vsCommandBarType, Object, Int32) AddCommandBar(String, vsCommandBarType, Object, Int32) AddCommandBar(String, vsCommandBarType, Object, Int32) AddCommandBar(String, vsCommandBarType, Object, Int32) AddCommandBar(String, vsCommandBarType, Object, Int32)

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

AddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32) AddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32) AddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32) AddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32) AddNamedCommand(AddIn, String, String, String, Boolean, Int32, Object[], Int32) AddNamedCommand(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.

AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType) AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType) AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType) AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType) AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType) AddNamedCommand2(AddIn, String, String, String, Boolean, Object, Object[], Int32, Int32, vsCommandControlType)

Creates 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.

CommandInfo(Object, String, Int32) CommandInfo(Object, String, Int32) CommandInfo(Object, String, Int32) CommandInfo(Object, String, Int32) CommandInfo(Object, String, Int32) CommandInfo(Object, String, Int32)

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

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumerator for items in the Commands collection.

Item(Object, Int32) Item(Object, Int32) Item(Object, Int32) Item(Object, Int32) Item(Object, Int32) Item(Object, Int32)

Returns an indexed member of a collection.

Raise(String, Int32, Object, Object) Raise(String, Int32, Object, Object) Raise(String, Int32, Object, Object) Raise(String, Int32, Object, Object) Raise(String, Int32, Object, Object) Raise(String, Int32, Object, Object)

Executes the specified command.

RemoveCommandBar(Object) RemoveCommandBar(Object) RemoveCommandBar(Object) RemoveCommandBar(Object) RemoveCommandBar(Object) RemoveCommandBar(Object)

Removes a command bar that was created with the AddCommandBar(String, vsCommandBarType, Object, Int32) method.

UpdateCommandUI(Boolean) UpdateCommandUI(Boolean) UpdateCommandUI(Boolean) UpdateCommandUI(Boolean) UpdateCommandUI(Boolean) UpdateCommandUI(Boolean)

Forces a refresh of the command UI state.

Applies to