Discard():Void

Discards all changes to a data object.

The method discards all changes for the data object. The ChangeSet remains.

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