[Microstation CE Update 17] [C#] | Update buffer | Undo previous change

I have the next code:

public void Update(IDgnECInstance instance, string propertyName, string value)
{
    instance.SetAsString(propertyName, value);
    instance.WriteChanges();
}


How can I enable users to reverse actions performed in my custom form using the "undo-redo" function (the arrows that allow you to revert changes)? I'm looking to implement the ability to programmatically undo changes using MicroStation's built-in feature, specifically targeting this particular action: