共用方式為


CommandEvents 介面

更新:2007 年 11 月

提供命令事件給 Automation 用戶端。請使用此物件以瞭解此功能,如需物件的說明,請參考 CommandEventsClass

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

<GuidAttribute("A79FC678-0D0A-496A-B9DC-0D5B9E1CA9FC")> _
Public Interface CommandEvents _
    Implements _CommandEvents, _dispCommandEvents_Event

Dim instance As CommandEvents
[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
public interface CommandEvents extends _CommandEvents, _dispCommandEvents_Event

範例

<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

請參閱

參考

CommandEvents 成員

EnvDTE 命名空間