Alerts listeners that the document has been saved.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Overridable Sub OnDocumentSaved ( _
e As EventArgs _
)
'使用
Dim e As EventArgs
Me.OnDocumentSaved(e)
protected virtual void OnDocumentSaved(
EventArgs e
)
protected:
virtual void OnDocumentSaved(
EventArgs^ e
)
protected function OnDocumentSaved(
e : EventArgs
)
Parameters
e
Type: System.EventArgsAn EventArgs object.
Remarks
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The OnDocumentSaved 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 OnDocumentSaved in a derived class, be sure to call the base class’s OnDocumentSaved method so that registered delegates receive the event.
Permissions
- 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.