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

Syntax

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

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

Parameters

  • elementId
    Type: System.Guid

    The ID of the element to observe

Permissions

See Also

Reference

ElementPropertyChangedEventManager Class

ElementPropertyChangedEventManager Members

Add Overload

Microsoft.VisualStudio.Modeling Namespace