ITrkAttribute.VirtualID (read-only property)

property VirtualID
Syntax: BSTR*pVal = object.VirtualID
For regular attributes, this is same as the Item ID.
However, for the Associated Item's Attributes, this is the Item ID of the
Item on which these attributes are seen as associated Attributes.
On associated Attributes, the ItemID contains the ID of the item on which these attributes
physically reside.

Dim oTrkAttribAgent As Object
Dim oTrkAttributes As Object
Dim oTrkAttribute As Object
Set oTrkAttribAgent = CreateObject("Tracker.TrkAttributeAgent")
oTrkAttribAgent.Execute oTrkAttributes
Set oTrkAttribute = oTrkAttributes.Item(1)
Msgbox oTrkAttribute.VirtualID