ITrackingCollectionTrackedItem ID Property Cognex VisionPro 9.22

Gets the ID of the tracked item.

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

string ID { get; }

Property Value

Type: String
Remarks

The ID holds a GUID string which identifies a particular tracked item instance. A new GUID is created and assigned to the ID property when the tracked item is constructed.

The ID property may be used as an index into the containing tracking collection. The ID property provides an unchanging path to the tracked object for use in linking / data binding.

The ID property is serialized. Deserializing a tracked object will result in a new object instance with the same ID as the original. This is desirable so that links / data binding that use the ID property in their paths will continue to work after deserialization.

This means that it is possible to create multiple tracked items with the same ID property. However, the ID field will always be unique within a containing tracking collection.

See Also