Class OptionsSettingsProvider
Represents a settings provider that saves settings in the 'Options.settings' file in the Configuration folder.
public class OptionsSettingsProvider : SettingsProviderBase, IApplicationSettingsProvider
- Inheritance
-
OptionsSettingsProvider
- Implements
- Inherited Members
Remarks
To use the OptionsSettingsProvider with the settings designer,
set the Provider property of the setting to Loehnert.Lisrt.Framework.Services.OptionsSettingsProvider.
When you don't use the settings designer, decorate the settings property with the SettingsProviderAttribute ([SettingsProvider(typeof(OptionsSettingsProvider))]
).
Constructors
OptionsSettingsProvider()
Initializes a new instance of the OptionsSettingsProvider class.
public OptionsSettingsProvider()
Properties
FilePath
Gets the name for the path.
protected override string FilePath { get; }
Property Value
Name
Gets the name of the provider.
public override string Name { get; }
Property Value
Methods
SetPropertyValues(SettingsContext, SettingsPropertyValueCollection)
Sets the values of the specified group of property settings.
public override void SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection)
Parameters
context
SettingsContextA SettingsContext describing the current application usage.
collection
SettingsPropertyValueCollectionA SettingsPropertyValueCollection representing the group of property settings to set.