다음을 통해 공유


GlobalObject.PerformRemove Method

Clears the global object and notifies users of its removal.

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

Syntax

'Declaration
Protected Overrides Sub PerformRemove
protected override void PerformRemove()
protected:
virtual void PerformRemove() override
abstract PerformRemove : unit -> unit  
override PerformRemove : unit -> unit
protected override function PerformRemove()

Remarks

The PerformRemove method is called by the derived class to notify users that a global type is no longer available for use. The default implementation of PerformRemove performs the following actions:

  1. Raises the Removing event.

  2. Sets the object instance to a null value by calling the ClearInstance and ClearObjectType methods.

  3. Raises the Removed event.

.NET Framework Security

See Also

Reference

GlobalObject Class

Microsoft.VisualStudio.Shell.Design Namespace

PerformChange

ClearInstance

ClearObjectType

Removing

Removed