Click or drag to resize

AppSettingsBase(ConfigurationFile, Boolean, Boolean) Constructor

Creates a new instance of the AppSettingsBase class for the application's configuration file.

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
protected AppSettingsBase(
	ConfigurationFile configFile,
	bool requireSerializeSettingAttribute,
	bool initialize
)
View Source

Parameters

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