ElementPropertyChangedEventManager.Add Method (DomainPropertyInfo, Guid, Delegate)
Adds an event handler that is notified whenever the value of a particular property of a particular element is changed.
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 ( _
domainProperty As DomainPropertyInfo, _
elementId As Guid, _
handler As Delegate _
)
public void Add(
DomainPropertyInfo domainProperty,
Guid elementId,
Delegate handler
)
public:
void Add(
DomainPropertyInfo^ domainProperty,
Guid elementId,
Delegate^ handler
)
member Add :
domainProperty:DomainPropertyInfo *
elementId:Guid *
handler:Delegate -> unit
public function Add(
domainProperty : DomainPropertyInfo,
elementId : Guid,
handler : Delegate
)
Parameters
- domainProperty
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfo
The domain property to observe.
- elementId
Type: System.Guid
The ID of the element to observe
- handler
Type: System.Delegate
The handler to add.
.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.