Questions tagged [settingsprovider]
7 questions
9
votes
1 answer
SettingsProviderAttribute replacement for application-level custom SettingsProvider
In a .NET application, if you have specific Settings need, such as storing them in DB, then you could replace LocalFileSettingsProvider with a custom settings provider of your, examples:
Create a Custom Settings Provider to Share Settings Between…

Adam
- 3,872
- 6
- 36
- 66
7
votes
1 answer
How to make settings provider inside a dynamically loaded assembly available for reflection?
Following this question, I successfully created my custom settings provider in the legacy C# app we are developing. It is referenced via the SettingsProvider attribute:
public sealed class MySettings : SettingsProvider
{
…

Péter Török
- 114,404
- 31
- 268
- 329
3
votes
1 answer
Why is reading a settings property value making a SettingsPropertyValue object dirty?
While implementing a custom settings provider I noticed that accessing a setting property's value changes its IsDirty flag to true.
// Arrange
var property = new SettingsProperty("property1")
{
PropertyType = typeof(Color),
DefaultValue =…

CodeFox
- 3,321
- 1
- 29
- 41
2
votes
2 answers
How to change the predefined userconfig directory of my .NET application?
Currentlly the user-settings of my application are stored in this default directory:
C:\Users\{User Name}\AppData\Roaming\{Company Name}\{Assembly Name}.vshos_Url_{Hash}\{Assembly Version}
I'm aware of the meaning of the default Microsoft naming…

ElektroStudios
- 19,105
- 33
- 200
- 417
2
votes
0 answers
How do I invoke my custom settings provider?
I need to specify a different location for my settings file. After many long hours of searching, I found out that I have to write my own SettingsProvider. I succeeded in creating one which allows me to specify a path for settings file via its…

ATL_DEV
- 9,256
- 11
- 60
- 102
1
vote
1 answer
.NET SettingsProvider/ApplicationSettingsBase caching
I'm looking at some code that uses the .NET System.Configuration.SettingsProvider and ApplicationSettingsBase to handle configuration.
We have a class that derives from SettingsProvider that uses a database as the data store, and then we have other…

Andy White
- 86,444
- 48
- 176
- 211
1
vote
0 answers
How to use multiple SettingsProviders
Up until now I have always stored user settings in the registry but I'm attempting to start saving settings using the ApplicationSettings. On the surface things are pretty simple but I am having trouble creating nested groups.
I have several…

user1679816
- 11
- 2