|
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.250-beta+e1aac152bf9c38c67035c6d283461f222e39e02a
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