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 (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Sub Add ( _
    domainProperty As DomainPropertyInfo, _
    handler As Delegate _
)
'使用
Dim instance As ElementPropertyChangedEventManager
Dim domainProperty As DomainPropertyInfo
Dim handler As Delegate

instance.Add(domainProperty, handler)
public void Add(
    DomainPropertyInfo domainProperty,
    Delegate handler
)
public:
void Add(
    DomainPropertyInfo^ domainProperty, 
    Delegate^ handler
)
public function Add(
    domainProperty : DomainPropertyInfo, 
    handler : Delegate
)

Parameters

Permissions

See Also

Reference

ElementPropertyChangedEventManager Class

ElementPropertyChangedEventManager Members

Add Overload

Microsoft.VisualStudio.Modeling Namespace