BcfDataSetEnableFileUndoSession Method |
[This is preliminary documentation and is subject to change.]
Namespace: CalculationWorks.BusinessModel
| Exception | Condition |
|---|---|
| ArgumentNullException | indexFile or dataFile is null. |
| ArgumentException | indexFile or dataFile are not navigable. |
| ObjectDisposedException | This BcfDataSet is disposed. |
| InvalidOperationException | BcfDataSet is Locked. orUndoSerializationService is null orCurrentTransaction is not null orUndo is already enabled. |
This method enables undo serializing historic BcfRow and Value objects.
Unlike EnableFileUndo(Stream, Stream) this method adds the current data to the files. So a terminated session can be restored including the undo history. See RestoreUndoRepository(Stream, Stream).
| Because several limitations targeting .net native; many scenarios using types other than primitives like int, string etc. may cause serialization issues (MSDN). |