40 likes | 142 Views
.NET Configuration. Overview. SettingsPropertyCollection. 1 1. SettingsBase. SettingsPropertyValueCollection. + Save() - GetPropertyValueByName () - GetPropertiesFromProvider. SettingsContext. *. ApplicationSettingsBase. SettingsProvider. Reset() Reload().
E N D
Overview SettingsPropertyCollection • 1 1 SettingsBase SettingsPropertyValueCollection + Save() - GetPropertyValueByName() - GetPropertiesFromProvider SettingsContext • * ApplicationSettingsBase SettingsProvider Reset() Reload() GetPropertyValues() SetPropertyValues LocalFileSettingsProvider CustomSettingsProvider
Get/Set/Reload at the First Time Constructor() Initializer() SettingsBase SettingsProvider SettingsPropertyValueCollection GetPropertyValues( SettingsContext context, SettingsPropertyCollection collection) DefaultValue IsReadOnly Name PropertyType Provider SerializeAs Attributes SettingsKey SettingsGroup SettingsClassType
Save() void SetPropertyValues( SettingsContext context, SettingsPropertyValueCollection collection) IsDirty Name Property PropertyValue SerializedValue UsingDefaultValue SettingsKey SettingsGroup SettingsClassType