Freigeben über


GlobalObjectProvider.CollectionChanged Event

Occurs when there is a change to the collection of global object or global types.

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

Syntax

'Declaration
Public Event CollectionChanged As EventHandler
'Usage
Dim instance As GlobalObjectProvider
Dim handler As EventHandler

AddHandler instance.CollectionChanged, handler
public event EventHandler CollectionChanged
public:
 event EventHandler^ CollectionChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
member CollectionChanged : IEvent<EventHandler,
    EventArgs>
JScript does not support events.

Remarks

The CollectionChanged event occurs whenever a new global object or type is dynamically added, removed, or modified within the design-time environment.

Unlike the CollectionChanged event, there is no such corresponding event in the GlobalObjectProvider class.

For more information about handling events, see Consuming Events.

.NET Framework Security

See Also

Reference

GlobalObjectProvider Class

GlobalObjectProvider Members

Microsoft.VisualStudio.Shell.Design Namespace

GetGlobalTypes

GetGlobalObjects