Form FlowsheetGet Snapshot Method
Serialises the requested portion of the flowsheet state to an XDocument suitable for undo/redo or cloning.
Definition
Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
An XDocument containing the serialised state.
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
C#
public XDocument GetSnapshot(
SnapshotType stype,
ISimulationObject obj = null
)VB
Public Function GetSnapshot (
stype As SnapshotType,
Optional obj As ISimulationObject = Nothing
) As XDocumentParameters
- stype SnapshotType
- The scope of the snapshot.
- obj ISimulationObject (Optional)
- When stype is ObjectData, the specific object to serialise.
Return Value
XDocumentAn XDocument containing the serialised state.