1 / 4

.NET Configuration Settings Overview: Properties, Methods, and Customization

Explore how to manage settings in .NET configuration using SettingsPropertyCollection, SettingsContext, and more. Learn how to save, reset, reload, and customize settings efficiently.

viho
Télécharger la présentation

.NET Configuration Settings Overview: Properties, Methods, and Customization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. .NET Configuration

  2. Overview SettingsPropertyCollection • 1 1 SettingsBase SettingsPropertyValueCollection + Save() - GetPropertyValueByName() - GetPropertiesFromProvider SettingsContext • * ApplicationSettingsBase SettingsProvider Reset() Reload() GetPropertyValues() SetPropertyValues LocalFileSettingsProvider CustomSettingsProvider

  3. 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

  4. Save() void SetPropertyValues( SettingsContext context, SettingsPropertyValueCollection collection) IsDirty Name Property PropertyValue SerializedValue UsingDefaultValue SettingsKey SettingsGroup SettingsClassType

More Related