ElementEventManager.Add Method

Definition

Overloads

Add(DomainClassInfo, Delegate)

Adds a handler for events at the domain class or domain relationship level

Add(DomainModelInfo, Delegate)

Adds a handler for events at the domain model level

Add(DomainClassInfo, Delegate)

Adds a handler for events at the domain class or domain relationship level

public:
 void Add(Microsoft::VisualStudio::Modeling::DomainClassInfo ^ domainClass, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainClassInfo domainClass, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainClassInfo * Delegate -> unit
Public Sub Add (domainClass As DomainClassInfo, handler As Delegate)

Parameters

domainClass
DomainClassInfo

The domain class or domain relationship for which events are to be handled

handler
Delegate

The event handler

Applies to

Add(DomainModelInfo, Delegate)

Adds a handler for events at the domain model level

public:
 void Add(Microsoft::VisualStudio::Modeling::DomainModelInfo ^ domainModel, Delegate ^ handler);
public void Add (Microsoft.VisualStudio.Modeling.DomainModelInfo domainModel, Delegate handler);
override this.Add : Microsoft.VisualStudio.Modeling.DomainModelInfo * Delegate -> unit
Public Sub Add (domainModel As DomainModelInfo, handler As Delegate)

Parameters

domainModel
DomainModelInfo

The domain model for which events are to be handled

handler
Delegate

The event handler

Applies to