|
AppSettingsBase(ConfigurationFile, Boolean, Boolean) Constructor
|
Creates a new instance of the
AppSettingsBase class for the application's configuration file.
Namespace: GSF.ConfigurationAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax GSF.Configuration.AppSettingsBase = function(configFile, requireSerializeSettingAttribute, initialize);
View SourceParameters
- configFile ConfigurationFile
- Configuration file used for accessing settings.
- requireSerializeSettingAttribute Boolean
-
Assigns flag that determines if SerializeSettingAttribute is required
to exist before a field or property is serialized to the configuration file.
- initialize Boolean
- Determines if Initialize method should be called from constructor.
Remarks
Note that some .NET languages (e.g., Visual Basic) will not initialize member elements before call to constuctor,
in this case
initialize should be set to
false, then the
Initialize
method should be called manually after all properties have been initialized. Alternately, consider using the
DefaultValueAttribute on the fields or properties and this will be used to initialize the values.
See Also