Constructs a new instance of the DataBinding class.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.25.1.0
Syntax
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
| Exception | Condition |
|---|---|
| ArgumentNullException | source or destination are null |
| ArgumentException | sourcePath or destinationPath are empty |
See Also