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