This class watches a property or sub-property of an object, and raises a Changed event when the value of the property has changed. Can also be used to set the value of a watched property.
Cognex.Vision ShareableBase
Cognex.Vision ChangedEventShareableBase
Cognex.Vision PropertyWatcher
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
The PropertyWatcher type exposes the following members.
| Name | Description | |
|---|---|---|
| PropertyWatcher | Constructs a new instance of this class. | |
| PropertyWatcher(Object, String) | Constructs a new instance of the PropertyWatcher class with the given subject and path. |
| Name | Description | |
|---|---|---|
| Attach | Attaches to a new subject and path. | |
| Equals | Compares the equality of this object with another. (Overrides ChangedEventShareableBase Equals(Object).) | |
| GetHashCode | Returns the hash code of this object. (Overrides ChangedEventShareableBase GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetTypeMeta | Get the TypeMeta that describes the type of this object. | |
| ResumeAndRaiseChangedEvent | Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent. | |
| SuspendChangedEvent | Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent. | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two PropertyWatcher objects. | |
| Inequality | Compares the inequality of two PropertyWatcher objects. |
| Name | Description | |
|---|---|---|
| SfIsConnected | ||
| SfOptimizeIneffectiveChanges | ||
| SfPath | ||
| SfPropertyMeta | ||
| SfSubject | ||
| SfValue |
| Name | Description | |
|---|---|---|
| ChangedEventSuspended | Indicates if raising the ChangedEvent has been suspended. | |
| Handle | (Overrides ChangedEventShareableBase Handle.) | |
| IsConnected | Indicates if this property watcher is currently connected to a valid property. | |
| OptimizeIneffectiveChanges | Get Gets whether the property watcher will optimize out any attempts to set Value to its current value. | |
| Path | Get Gets the path to the property or sub-property being watched. | |
| PropertyMeta | Gets a PropertyMeta instance for the property being watched by this PropertyWatcher. | |
| Subject | Get Gets the object whose property or sub-property is being watched. | |
| Value | Get Gets the value of the watched property. |
| Name | Description | |
|---|---|---|
| Changed | The actual event. |