Events2 인터페이스

확장성 모델의 모든 이벤트에 액세스할 수 있습니다. 확장성 모델 안의 특정 개체로부터 이벤트가 노출될 수도 있습니다.

네임스페이스:  EnvDTE80
어셈블리:  EnvDTE80(EnvDTE80.dll)

구문

‘선언
<GuidAttribute("BED31E8C-F845-4397-AF13-6B82A6996C0D")> _
Public Interface Events2 _
    Inherits Events
[GuidAttribute("BED31E8C-F845-4397-AF13-6B82A6996C0D")]
public interface Events2 : Events
[GuidAttribute(L"BED31E8C-F845-4397-AF13-6B82A6996C0D")]
public interface class Events2 : Events
[<GuidAttribute("BED31E8C-F845-4397-AF13-6B82A6996C0D")>]
type Events2 =  
    interface
        interface Events
    end
public interface Events2 extends Events

Events2 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 BuildEvents (Events에서 상속됨)
Public 속성 BuildEvents 솔루션 빌드에 대한 이벤트를 제공하는 BuildEvents 개체를 가져옵니다.
Public 속성 CodeModelEvents 코드 모델에 대한 이벤트를 제공하는 CodeModelEvents 개체를 가져옵니다.
Public 속성 CommandBarEvents[Object] (Events에서 상속됨)
Public 속성 CommandBarEvents[Object] 제공된 CommandBarControl 개체를 클릭할 때 발생하는 이벤트를 제공하는 개체를 가져옵니다.
Public 속성 CommandEvents[String, Int32] (Events에서 상속됨)
Public 속성 CommandEvents[String, Int32] 지정된 명령에 대한 CommandEvents를 가져옵니다.
Public 속성 DebuggerEvents (Events에서 상속됨)
Public 속성 DebuggerEvents 디버거에서 이벤트를 제공하는 개체를 가져옵니다.
Public 속성 DebuggerExpressionEvaluationEvents 디버거에서 식 계산을 시작하거나 중지할 때 이를 알리는 데 사용할 수 있는 이벤트 개체를 가져옵니다.
Public 속성 DebuggerProcessEvents 디버깅된 프로세스를 실행하거나 중지할 때 이를 알리는 데 사용할 수 있는 이벤트 개체를 검색합니다.
Public 속성 DocumentEvents[Document] (Events에서 상속됨)
Public 속성 DocumentEvents[Document] 문서에 대한 이벤트를 제공하는 DocumentEvents를 가져옵니다.
Public 속성 DTEEvents (Events에서 상속됨)
Public 속성 DTEEvents 개발 환경에 이벤트를 제공하는 DTEEvents 개체를 가져옵니다.
Public 속성 FindEvents (Events에서 상속됨)
Public 속성 FindEvents Find 작업에 대한 FindEvents를 가져옵니다.
Public 속성 MiscFilesEvents (Events에서 상속됨)
Public 속성 MiscFilesEvents 솔루션에 대한 ProjectItemsEvents를 가져옵니다.
Public 속성 OutputWindowEvents[String] (Events에서 상속됨)
Public 속성 OutputWindowEvents[String] 창 이벤트에 대한 OutputWindowEvents를 가져옵니다.
Public 속성 ProjectItemsEvents 솔루션 내의 모든 프로젝트 항목에 대한 이벤트를 찾는 데 사용할 수 있는 이벤트 개체를 가져옵니다.
Public 속성 ProjectsEvents 솔루션 내의 모든 프로젝트에 대한 이벤트를 찾는 데 사용할 수 있는 이벤트 개체를 가져옵니다.
Public 속성 PublishEvents 게시하는 이벤트에 대한 주석 개체를 가져옵니다.
Public 속성 SelectionEvents (Events에서 상속됨)
Public 속성 SelectionEvents 선택 항목에 대한 SelectionEvents를 가져옵니다.
Public 속성 SolutionEvents (Events에서 상속됨)
Public 속성 SolutionEvents 솔루션에 대한 SolutionEvents 개체를 가져옵니다.
Public 속성 SolutionItemsEvents (Events에서 상속됨)
Public 속성 SolutionItemsEvents 솔루션에 대한 ProjectItemsEvents 개체를 가져옵니다.
Public 속성 TaskListEvents[String] (Events에서 상속됨)
Public 속성 TaskListEvents[String] 개발 환경에 대한 TaskListEvents를 가져옵니다.
Public 속성 TextDocumentKeyPressEvents 텍스트 편집기 내에서 키 누름 이벤트를 찾는 데 사용할 수 있는 이벤트 개체를 가져옵니다.
Public 속성 TextEditorEvents[TextDocument] (Events에서 상속됨)
Public 속성 TextEditorEvents[TextDocument] IDE에 대한 TextEditorEvents 개체를 가져옵니다.
Public 속성 WindowEvents[Window] (Events에서 상속됨)
Public 속성 WindowEvents[Window] 개발 환경에서 창에 대한 이벤트를 제공하는 WindowEvents 개체를 가져옵니다.
Public 속성 WindowVisibilityEvents 도구 창을 표시하거나 숨길 때 이를 알리는 데 사용할 수 있는 이벤트 개체를 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 GetObject(String) (Events에서 상속됨)
Public 메서드 GetObject(String) DTE 개체에 런타임에 바인딩되어 런타임에서 이름으로 액세스할 수 있는 인터페이스 또는 개체를 반환합니다.

위쪽

설명

자동화 모델에는 임의의 언어로 작성된 자동화 클라이언트가 SolutionEvents 같은 자동화 이벤트를 참조하는 데 사용할 수 있는 루트 Events 개체가 들어 있습니다.

여러 가지 IDE 도구, 프로젝트 형식, 편집기 등에서 특정한 추가 이벤트를 Events 개체에 추가할 수 있습니다. 예를 들어, Visual C++에서는 VCProjectItemsEvents 속성을 추가합니다.

예제

Public Module Module1
   Dim WithEvents bldevents As BuildEvents
   Dim applicationObject As EnvDTE.DTE

   Sub EventsExample()
      Dim addInInstance As EnvDTE.AddIn

      applicationObject = CType(Application, EnvDTE.DTE)
      bldevents = CType(applicationObject.Events.BuildEvents, EnvDTE.BuildEvents)
   End Sub

   Private Sub bldevents_OnBuildDone(ByVal Scope As EnvDTE.vsBuildScope, ByVal Action As EnvDTE.vsBuildAction) Handles bldevents.OnBuildDone
      MsgBox("Build complete")
   End Sub
End Module

참고 항목

참조

EnvDTE80 네임스페이스