Adds an event handler that is notified whenever the value of a particular property on an instance of a particular domain class, or its subclasses, is changed.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub Add ( _
domainClass As DomainClassInfo, _
domainProperty As DomainPropertyInfo, _
handler As Delegate _
)
'使用
Dim instance As ElementPropertyChangedEventManager
Dim domainClass As DomainClassInfo
Dim domainProperty As DomainPropertyInfo
Dim handler As Delegate
instance.Add(domainClass, domainProperty, _
handler)
public void Add(
DomainClassInfo domainClass,
DomainPropertyInfo domainProperty,
Delegate handler
)
public:
void Add(
DomainClassInfo^ domainClass,
DomainPropertyInfo^ domainProperty,
Delegate^ handler
)
public function Add(
domainClass : DomainClassInfo,
domainProperty : DomainPropertyInfo,
handler : Delegate
)
Parameters
domainClass
Type: Microsoft.VisualStudio.Modeling.DomainClassInfoThe domain class to observe.
domainProperty
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfoThe domain property to observe.
handler
Type: System.DelegateThe handler to add.
Permissions
- 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.
See Also
Reference
ElementPropertyChangedEventManager Class