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:
Raises the Removing event.
Sets the object instance to a null value by calling the ClearInstance and ClearObjectType methods.
Raises the Removed event.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.