Click or drag to resize

PropertyService Class

Default implementation of the application property service.
Inheritance Hierarchy
SystemObject
  Altaxo.Main.ServicesPropertyService

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class PropertyService : IPropertyService

The PropertyService type exposes the following members.

Constructors
 NameDescription
Public methodPropertyService Initializes a new instance of the PropertyService class.
Top
Properties
 NameDescription
Public propertyApplicationSettings Gets the application settings.
Public propertyBuiltinSettings Gets the built-in settings.
Public propertyConfigDirectory Gets the configuration directory.
Public propertyDataDirectory Gets the data directory.
Public propertyLocalApplicationSettings Gets the local application settings (applications specific for this PC). This data are stored in the LOCALAPPDATA folder.
Public propertyLocalApplicationSettingsFile Gets the file that stores local application settings.
Public propertyPropertiesFileName Gets the file name of the user properties file.
Public propertyUserSettings Gets the user settings.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValueT(PropertyKeyT, RuntimePropertyKind) Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodGetValueT(String, T) Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodGetValueT(PropertyKeyT, RuntimePropertyKind, FuncT) Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodGetValueOrNullT Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Protected methodInternalLoadUserSettingsBag Loads a lazily deserialized settings bag from the specified file.
Protected methodInternalSaveUserSettingsBag Saves a lazily loaded settings bag to the specified file.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnPropertyChanged Raises the PropertyChanged event.
Public methodRemove Removes the property with the specified key from the user settings.
Public methodSave Saves the user settings.
Public methodSetValueT(PropertyKeyT, T) Sets a value belonging to a property key
Public methodSetValueT(String, T) Sets a value associated with a property key.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChanged Occurs when a property value changes.
Top
Fields
 NameDescription
Protected field_localApplicationSettings The user settings bag is a bag that loads the properties lazy (as Xml string) during creation of this service. See remarks for why this is neccessary.
Protected field_userSettings The user settings bag is a bag that loads the properties lazy (as Xml string) during creation of this service. See remarks for why this is neccessary.
Top
See Also