Udostępnij za pośrednictwem


Events.CommandEvents Property

Gets the CommandEvents for the specified command.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.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 : CommandEvents
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

Events Interface

EnvDTE Namespace