DocData.OnDocumentClosing 方法

将关闭警报侦听器文档。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
Protected Overridable Sub OnDocumentClosing ( _
    e As EventArgs _
)
protected virtual void OnDocumentClosing(
    EventArgs e
)

参数

备注

引发事件时会通过委托调用事件处理程序。 有关详细信息,请参阅 处理和引发事件

OnDocumentClosing 方法还允许派生类对事件进行处理而不必附加委托。 建议使用此技术来处理在派生类中的事件。

对继承者的说明

当重写派生类中 OnDocumentClosing,请务必调用基类的 OnDocumentClosing 方法,以便注册的委托接收事件。

.NET Framework 安全性

请参阅

参考

DocData 类

Microsoft.VisualStudio.Modeling.Shell 命名空间