ElementPropertyChangedEventManager.Add Method (DomainPropertyInfo, Delegate)
Adds an event handler that is notified whenever the value of any instance of a particular domain property is changed.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public Sub Add ( _
domainProperty As DomainPropertyInfo, _
handler As Delegate _
)
public void Add(
DomainPropertyInfo domainProperty,
Delegate handler
)
public:
void Add(
DomainPropertyInfo^ domainProperty,
Delegate^ handler
)
member Add :
domainProperty:DomainPropertyInfo *
handler:Delegate -> unit
public function Add(
domainProperty : DomainPropertyInfo,
handler : Delegate
)
Parameters
domainProperty
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfoThe domain property to observe.
handler
Type: DelegateThe 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.