This class also supports storing Application Settings in:

Note you don't have to implement constructors as I do here. You can simple call the Constructor with false to stop the app from reading the settings from the default location.

For example you can simply do this to instantiate your class:

WebStoreConfig Configuration = new WebStoreConfig(); Configuration.SetEnryption("ConnectionString,MailPassword","EncryptThis"); Configuration.SetConfigurationSection("wwWebStore"); Configuration.ReadKeysFromConfig("wwWebStore.Config");

I simply prefer having a constructor that takes care of this for me so that I don't have to remember what I need to do to get the object instantiated.


Last Updated: 4/21/2004 | Send topic feedback