次の方法で共有


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 名前空間