PropertyWatcher ClassCognex VisionPro 9.21

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.

Inheritance Hierarchy

System Object
  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
Syntax

public sealed class PropertyWatcher : ChangedEventShareableBase, 
	IObject

The PropertyWatcher type exposes the following members.

Constructors

  NameDescription
Public methodPropertyWatcher 

Constructs a new instance of this class.

Public methodPropertyWatcher(Object, String)

Constructs a new instance of the PropertyWatcher class with the given subject and path.

Top
Methods

  NameDescription
Public methodAttach

Attaches to a new subject and path.

Public methodEquals
Compares the equality of this object with another.
(Overrides ChangedEventShareableBase Equals(Object).)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides ChangedEventShareableBase GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodResumeAndRaiseChangedEvent

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.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
Public methodSuspendChangedEvent

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.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two PropertyWatcher objects.
Public operatorStatic memberInequality
Compares the inequality of two PropertyWatcher objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfIsConnected
Public fieldStatic memberSfOptimizeIneffectiveChanges
Public fieldStatic memberSfPath
Public fieldStatic memberSfPropertyMeta
Public fieldStatic memberSfSubject
Public fieldStatic memberSfValue
Top
Properties

  NameDescription
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyHandle (Overrides ChangedEventShareableBase Handle.)
Public propertyIsConnected

Indicates if this property watcher is currently connected to a valid property.

Public propertyOptimizeIneffectiveChanges
Get

Gets whether the property watcher will optimize out any attempts to set Value to its current value.

Public propertyPath
Get

Gets the path to the property or sub-property being watched.

Public propertyPropertyMeta

Gets a PropertyMeta instance for the property being watched by this PropertyWatcher.

Public propertySubject
Get

Gets the object whose property or sub-property is being watched.

Public propertyValue
Get

Gets the value of the watched property.

Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Top
See Also