PropertyWatcher Attach Method Cognex VisionPro 9.21

Attaches to a new subject and path.

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

public void Attach(
	Object subject,
	string path
)
Exceptions

ExceptionCondition
InvalidOperationException
VisionException
  • Assigning a new source fails.
  • If 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 Path, Subject, IsConnected, PropertyMeta, and Value properties. The following StateFlags may be affected:

See Also