CommandEvents Interface

Provides command events for automation clients. Use this object for functionality, and refer to CommandEventsClass for this object's documentation.

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

Syntax

'Declaration
<GuidAttribute("A79FC678-0D0A-496A-B9DC-0D5B9E1CA9FC")> _
Public Interface CommandEvents _
    Inherits _CommandEvents, _dispCommandEvents_Event
[GuidAttribute("A79FC678-0D0A-496A-B9DC-0D5B9E1CA9FC")]
public interface CommandEvents : _CommandEvents, 
    _dispCommandEvents_Event
[GuidAttribute(L"A79FC678-0D0A-496A-B9DC-0D5B9E1CA9FC")]
public interface class CommandEvents : _CommandEvents, 
    _dispCommandEvents_Event
[<GuidAttribute("A79FC678-0D0A-496A-B9DC-0D5B9E1CA9FC")>]
type CommandEvents =  
    interface
        interface _CommandEvents
        interface _dispCommandEvents_Event
    end
public interface CommandEvents extends _CommandEvents, _dispCommandEvents_Event

The CommandEvents type exposes the following members.

Methods

  Name Description
Public method add_AfterExecute Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCommandEvents_Event.)
Public method add_BeforeExecute Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCommandEvents_Event.)
Public method remove_AfterExecute Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCommandEvents_Event.)
Public method remove_BeforeExecute Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCommandEvents_Event.)

Top

Events

  Name Description
Public event AfterExecute Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCommandEvents_Event.)
Public event BeforeExecute Infrastructure. Microsoft Internal Use Only. (Inherited from _dispCommandEvents_Event.)

Top

Examples

<System.ContextStaticAttribute()> Public WithEvents CommandEvents As EnvDTE.CommandEvents

Public Sub CommandEvents_AfterExecute(ByVal Guid As String, ByVal ID As Integer, ByVal CustomIn As Object, ByVal CustomOut As Object) Handles CommandEvents.AfterExecute
   MsgBox("test")
End Sub

See Also

Reference

EnvDTE Namespace