clear isolated storage

A

Andrus

WinForms MDI application stores user preferences (form position, sizes,
query params etc) in isolated storage.

I want to offer user menu selection "Restore defaults" which deletes all
those items so default settings are applied.

Best way for this is probably to delete all files in isolated storage.

How to clear all files in current isolated storage ?

Andrus.
 
R

Rene

If you are using the built-in Settings class then you could use:

Properties.Settings.Default.Reset();
 
A

Andrus

If you are using the built-in Settings class then you could use:
Properties.Settings.Default.Reset();

I tried but isolated storage files are *not* deleted. It maybe restores only
user.config file, not isolated storage.

I have 2-3 files per every form which are created/setored using
datacontractserializer.

I want to delete all those files.

Andrus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top