ReadWriteOptions

These constants represent the options you can use with the RWOptions parameter of the methods that read and write PropertyObjects. Use the bitwise-OR operator to specify more than one option.

  • RWOption_DoNotWriteTypes –(Value: 0x8) Do not write any type definitions when writing type definition instances. TestStand writes only values that are not the default value for a type. If you use the PropertyObject.ReadEx or PropertyObject.UnserializeEx methods to read the contents of a persisted object written using this option, the type definitions must already be loaded. If the types are no loaded, the PropertyObject.ReadEx fails.
  • RWOption_EraseAll –(Value: 0x4) When writing an object to a file, use this option to clear the entire contents of the existing file.
  • RWOption_EraseExistingObject –(Value: 0x2) When writing an object, use this option to clear out any existing object with the same name.
  • RWOption_NoOptions –(Value: 0x0) No options.
  • RWOption_ValuesOnly –(Value: 0x1) Use this option to read or write the value of the object and the value of each subproperty. TestStand does not write the type information for the object and subproperties when you use this flag. TestStand writes all values even if the value is the default value for a type. If you use PropertyObject.ReadEx or PropertyObject.UnserializeEx to read the contents of a persisted object written using this option, the structure of the target object must match the structure of the values read. If the target structure is incorrect, the values in the target object do not update.

See Also

PropertyObject.ReadEx

PropertyObject.Serialize

PropertyObject.UnserializeEx

PropertyObject.Write