Discard(DataObjectChangeTypes):Void

Discards the indicated changes to the data object.

This method discards the indicated changes for the data object. The ChangeSet remains.

If not all changes to the data object are discarded, then this object is reduced by the properties of the discarded changes.

Errors can occur during the publication since dependant changes may not be discarded or published with the rest. For example, a DataObjectReferencedException can be triggered if the data object was created and referenced in the ChangeSet and the creation is to now be discarded.

Return type: System.Void

Parameter

specificChanges

Type: DataObjectChangeTypes

This parameter indicates which changed aspects of a data object are to be published. If a value containing several aspects, such as Renamed and Ordered, is transferred to the parameter, then these aspects are published.