DocData.OnDocumentReloading Method

Alerts listeners that the document will be reloaded.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
Protected Overridable Sub OnDocumentReloading ( _
    e As EventArgs _
)
'使用
Dim e As EventArgs

Me.OnDocumentReloading(e)
protected virtual void OnDocumentReloading(
    EventArgs e
)
protected:
virtual void OnDocumentReloading(
    EventArgs^ e
)
protected function OnDocumentReloading(
    e : EventArgs
)

Parameters

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The OnDocumentReloading method also allows derived classes to handle the event without attaching a delegate. This technique is recommended for handling the event in a derived class.

Notes to Inheritors:

When you override OnDocumentReloading in a derived class, be sure to call the base class’s OnDocumentReloading method so that registered delegates receive the event.

Permissions

See Also

Reference

DocData Class

DocData Members

Microsoft.VisualStudio.Modeling.Shell Namespace