I know it’s possible to reset the My.Settings with Reset() method.
Is there anyway to do the same thing for just one setting? Or simple getting its default value instead of the one changed by user. (I’m referring to User Scope Settings)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot reset one setting. It is easy to get the default value through the
Propertiescollection. Specifically, theSettingsProperty‘sDefaultValueproperty. Moreover, thePropertyValuescollection containsSettingsPropertyValueobjects that allow you to determine if a property/setting has changed through theIsDirtyorUsingDefaultValueproperties.I wish there was a way to get these values without having to specify the name of the setting.