DataBinding Constructor (Object, String, Object, String, Boolean)Cognex VisionPro 9.22

Constructs a new instance of the DataBinding class.

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

public DataBinding(
	Object source,
	string sourcePath,
	Object destination,
	string destinationPath,
	bool syncOnInitialize
)

Parameters

source
Type: System Object
The source object.
sourcePath
Type: System String
The property name or dotted path to the source property.
destination
Type: System Object
The destination object.
destinationPath
Type: System String
The property name or dotted path to the destination property.
syncOnInitialize
Type: System Boolean
Determines if the source and destination are immediately synchronized when a new DataBinding is created. If true creating a new DataBinding will cause the destination value to be immediately updated/synchronized with the source value. If false, the destination value will not be updated until the source value changes.
Exceptions

ExceptionCondition
ArgumentNullExceptionsource or destination are null
ArgumentExceptionsourcePath or destinationPath are empty
See Also