Compartilhar via


GlobalObject.PerformChange Method

Reinitializes the global object and notifies users to changes to its state or shape.

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

Syntax

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

Remarks

The shape of a global object can dynamically change either through simple state changes or through modifications to it members. The PerformChange method is called in the derived class to propagate these changes to all the users of this global object. The default implementation of PerformChange performs the following sequence of actions:

  1. Raises the Changing event.

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

  3. Raises the Changed event.

.NET Framework Security

See Also

Reference

GlobalObject Class

Microsoft.VisualStudio.Shell.Design Namespace

PerformRemove

ClearInstance

ClearObjectType

OnChanging

OnChanged