Condividi tramite


GlobalType.OnRemoved Method

Raises the Removed event.

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

Syntax

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

Parameters

  • e
    Type: EventArgs

    An EventArgs that contains the event data.

Remarks

The OnRemoved method is called by the PerformRemove method after it deletes the current type.

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

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

.NET Framework Security

See Also

Reference

GlobalType Class

Microsoft.VisualStudio.Shell.Design Namespace

Removed

PerformRemove

OnRemoving