DataBinding ClassCognex VisionPro 9.22

This class represents a DataBinding or "link" from one object's property (or sub-property) to another object's property (or sub-property).

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision DataBinding

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

public sealed class DataBinding : ChangedEventShareableBase, 
	IObject

The DataBinding type exposes the following members.

Constructors

  NameDescription
Public methodDataBinding(Object, String, Object, String)

Constructs a new instance of the DataBinding class.

Public methodDataBinding(Object, String, Object, String, Boolean)

Constructs a new instance of the DataBinding class.

Top
Methods

  NameDescription
Public methodBindTo

Redirects the binding to a new source 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 methodGetSourceValue

Reads the current value of the source property. May throw an exception if the source property is not currently valid.

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 methodRefreshBinding

Refreshes the destination property from the source.

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 DataBinding objects.
Public operatorStatic memberInequality
Compares the inequality of two DataBinding objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfOptimizeIneffectiveChanges
Public fieldStatic memberSfSource
Public fieldStatic memberSfSourcePath
Public fieldStatic memberSfSourceProperty
Public fieldStatic memberSfUpdateException
Top
Properties

  NameDescription
Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyDestination

Gets the destination subject/object.

Public propertyDestinationPath

Gets the destination property name or dotted property path.

Public propertyDestinationProperty

Gets a PropertyMeta for the destination property.

Public propertyHandle (Overrides ChangedEventShareableBase Handle.)
Public propertyOptimizeIneffectiveChanges
Get

Determines if this DataBinding will optimize out any attempts to set the destination property to its current value.

Public propertySource

Gets the source subject/object.

Public propertySourcePath

Gets the source property name or dotted property path.

Public propertySourceProperty

Gets a PropertyMeta for the source property.

Public propertyUpdateException

Gets the exception, if any, that was thrown when the binding attempted to update its property value from its Source.

Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Top
See Also