PropertyWatcher Subject Property Cognex VisionPro 9.21 SR1
Get

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

Set

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

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax

public Object Subject { get; set; }

Property Value

Type: Object
Exceptions

ExceptionCondition
InvalidOperationExceptionIf the state flag of a property cannot be found OR a conversion from PropertyWatcher source to IChangedEvent type fails.
VisionExceptionIf the source type or property name change and this function fails to get a new property meta.
Remarks

Changed Raises because this method may change the Subject, IsConnected, PropertyMeta, and Value properties. The following StateFlags may be affected:

See Also