DocData.OnDocumentClosed Method
Alerts listeners that the document was closed.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)
Syntax
'Declaration
Protected Overridable Sub OnDocumentClosed ( _
e As EventArgs _
)
protected virtual void OnDocumentClosed(
EventArgs e
)
protected:
virtual void OnDocumentClosed(
EventArgs^ e
)
abstract OnDocumentClosed :
e:EventArgs -> unit
override OnDocumentClosed :
e:EventArgs -> unit
protected function OnDocumentClosed(
e : EventArgs
)
Parameters
e
Type: EventArgsAn EventArgs object.
Remarks
When you raise an event, the event handler is invoked through a delegate. For more information, see Raising an Event.
The OnDocumentClosed 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 OnDocumentClosed in a derived class, make sure to call the base class’s OnDocumentClosed method so that registered delegates receive the event.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.