C# to store and restore canvas views

Hello,
I’m looking for a method in C# to save (store) canvas views and restore them according to their name.
Do you have any examples because I’m a bit lost.
Thanks

resolved see :