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

'宣言
Protected Overrides Sub PerformRemove
'使用

Me.PerformRemove()
protected override void PerformRemove()
protected:
virtual void PerformRemove() override
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.

Permissions

See Also

Reference

GlobalObject Class

GlobalObject Members

Microsoft.VisualStudio.Shell.Design Namespace

PerformChange

ClearInstance

ClearObjectType

Removing

Removed