Share via


DocumentEventsClass.DocumentClosing 이벤트

이 API는 .NET Framework 인프라를 지원하며 사용자 코드에서 직접 사용할 수 없습니다.

문서가 닫히기 바로 전에 발생합니다.

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

구문

‘선언
Public Overridable Event DocumentClosing As _dispDocumentEvents_DocumentClosingEventHandler
public virtual event _dispDocumentEvents_DocumentClosingEventHandler DocumentClosing
public:
virtual   event _dispDocumentEvents_DocumentClosingEventHandler^ DocumentClosing {
    void add (_dispDocumentEvents_DocumentClosingEventHandler^ value);
    void remove (_dispDocumentEvents_DocumentClosingEventHandler^ value);
}
abstract DocumentClosing : IEvent<_dispDocumentEvents_DocumentClosingEventHandler,
    EventArgs>
override DocumentClosing : IEvent<_dispDocumentEvents_DocumentClosingEventHandler,
    EventArgs>
JScript에서는 이벤트를 지원하지 않습니다.

구현

_dispDocumentEvents_Event.DocumentClosing

예제

Public Sub DocumentEvents_DocumentClosing(ByVal Document As _
    EnvDTE.Document) Handles DocumentEvents.DocumentClosing
       MsgBox("test")
End Sub

.NET Framework 보안

참고 항목

참조

DocumentEventsClass 클래스

EnvDTE 네임스페이스