Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Alerts listeners that the file name of the document has changed.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
Syntax
'Declaration
Protected Overridable Sub OnFileNameChanged ( _
e As EventArgs _
)
protected virtual void OnFileNameChanged(
EventArgs e
)
protected:
virtual void OnFileNameChanged(
EventArgs^ e
)
abstract OnFileNameChanged :
e:EventArgs -> unit
override OnFileNameChanged :
e:EventArgs -> unit
protected function OnFileNameChanged(
e : EventArgs
)
Parameters
e
Type: System.EventArgsAn EventArgs object.
Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.
The OnFileNameChanged 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 OnFileNameChanged in a derived class, be sure to call the base class’s OnFileNameChanged 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.