Share via


GlobalType.OnChanged Method

Raises the Changed event.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Protected Overridable Sub OnChanged ( _
    e As EventArgs _
)
protected virtual void OnChanged(
    EventArgs e
)
protected:
virtual void OnChanged(
    EventArgs^ e
)
abstract OnChanged : 
        e:EventArgs -> unit  
override OnChanged : 
        e:EventArgs -> unit
protected function OnChanged(
    e : EventArgs
)

Parameters

Remarks

The OnChanged method is called by the PerformChange method after it has made a modification to the current type.

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

The OnChanged 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 OnChanged in a derived class, be sure to call the base class’s OnChanged method so that registered delegates receive the event.

.NET Framework Security

See Also

Reference

GlobalType Class

Microsoft.VisualStudio.Shell.Design Namespace

Changed

PerformChange

OnChanging