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.
Raises the Changing event.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Protected Overridable Sub OnChanging ( _
e As EventArgs _
)
protected virtual void OnChanging(
EventArgs e
)
protected:
virtual void OnChanging(
EventArgs^ e
)
abstract OnChanging :
e:EventArgs -> unit
override OnChanging :
e:EventArgs -> unit
protected function OnChanging(
e : EventArgs
)
Parameters
- e
Type: System.EventArgs
An EventArgs that contains the event data.
Remarks
The OnChanging method is called by the PerformChange method before it initiates a modification to the current type.
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The OnChanging method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Notes to Inheritors
When overriding OnChanging in a derived class, be sure to call the base class’s OnChanging 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.