ElementEventManager.Add Method (DomainModelInfo, Delegate)
Adds a handler for events at the domain model level.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Déclaration
Public Sub Add ( _
domainModel As DomainModelInfo, _
handler As Delegate _
)
public void Add(
DomainModelInfo domainModel,
Delegate handler
)
public:
void Add(
DomainModelInfo^ domainModel,
Delegate^ handler
)
member Add :
domainModel:DomainModelInfo *
handler:Delegate -> unit
public function Add(
domainModel : DomainModelInfo,
handler : Delegate
)
Parameters
- domainModel
Type: Microsoft.VisualStudio.Modeling.DomainModelInfo
The domain model for which events are to be handled.
- handler
Type: System.Delegate
The event handler.
.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.