Hello Ning -
When using the TS_PropertyGetProperty(... TS_PropertyTypeVersion ...) you should see an error akin to "-17309," telling you that this particular property will only exist for property objects that are retrieved from 'type' objects in TestStand.
What this means is, that TypeVersion would be valid for objects of NI_NumericLimitTest or the like. It is not meant to be used with sequence files. You could also use this property when trying to manipulate datatypes.
When working with sequence files to retrieve the version information in TestStand 2.0.x you must use the TS_PropertyGetValString(thisContext...) and the lookup string mentioned in
this earlier forum posting.
I hope this helps.
Regards,
Elaine R.
National Instruments
http://www.ni.com/support