Share via


Events2.CommandEvents Property

Gets the CommandEvents for the specified command.

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

Syntax

'Declaration
ReadOnly Property CommandEvents ( _
    Guid As String, _
    ID As Integer _
) As CommandEvents
CommandEvents this[
    string Guid,
    int ID
] { get; }
property CommandEvents^ CommandEvents[[InAttribute] String^ Guid, [InAttribute] int ID] {
    CommandEvents^ get ([InAttribute] String^ Guid, [InAttribute] int ID);
}
abstract CommandEvents : 
        Guid:string * 
        ID:int -> CommandEvents with get
JScript does not support indexed properties.

Parameters

  • Guid
    Type: System.String

    Required. The GUID for the command group. If Guid is Null or Nothing, then CommandEvents returns a CommandEvents object representing all commands in the environment.

  • ID
    Type: System.Int32

    Required. An index into the command group for the particular command. If ID is Null or Nothing, then CommandEvents returns a CommandEvents object representing all commands in the group.

Property Value

Type: EnvDTE.CommandEvents
A CommandEvents object.

.NET Framework Security

See Also

Reference

Events2 Interface

EnvDTE80 Namespace