|
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.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
SyntaxGSF.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