다음을 통해 공유


GlobalType.OnRemoving Method

Raises the Removing event.

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

Syntax

‘선언
Protected Overridable Sub OnRemoving ( _
    e As EventArgs _
)
‘사용 방법
Dim e As EventArgs

Me.OnRemoving(e)
protected virtual void OnRemoving(
    EventArgs e
)
protected:
virtual void OnRemoving(
    EventArgs^ e
)
abstract OnRemoving : 
        e:EventArgs -> unit 
override OnRemoving : 
        e:EventArgs -> unit 
protected function OnRemoving(
    e : EventArgs
)

Parameters

Remarks

The OnRemoving method is called by the PerformRemove method before it deletes the current type.

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

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

.NET Framework Security

See Also

Reference

GlobalType Class

GlobalType Members

Microsoft.VisualStudio.Shell.Design Namespace

Removing

PerformRemove

OnRemoved