adTempus API
ArcanaDevelopment.adTempus.Client Namespace / ObjectBase Class / UndoEdit Method / UndoEdit(Guid) Method
The snapshot ID returned by BeginEdit.


In This Topic
    UndoEdit(Guid) Method
    In This Topic
    Discards the current changes, reverting to the latest undo snapshot.
    Syntax
    'Declaration
     
    
    Public Overloads Function UndoEdit( _
       ByVal snapshotID As Guid _
    ) As Boolean
    public bool UndoEdit( 
       Guid snapshotID
    )
    public:
    bool UndoEdit( 
       Guid snapshotID
    ) 

    Parameters

    snapshotID
    The snapshot ID returned by BeginEdit.
    Remarks

    This method reverts the changes only if the current snapshot matches the snapshotID. This method can be used instead of UndoEdit to guard against redundant calls to CommitEdit or UndoEdit.

    Note: This method cannot be used to revert to an arbitrary undo snapshot. If the specified snapshot is not at the top of the snapshot stack, the method returns False and no changes are reverted.

    See Also