|
IniSettingsBase(String, String, Boolean, Boolean) Constructor
|
Creates a new instance of the
IniSettingsBase class for the application's INI file.
Namespace: GSF.ConfigurationAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax protected IniSettingsBase(
string iniFileName,
string sectionName,
bool useCategoryAttributes,
bool requireSerializeSettingAttribute
)
Protected Sub New (
iniFileName As String,
sectionName As String,
useCategoryAttributes As Boolean,
requireSerializeSettingAttribute As Boolean
)
protected:
IniSettingsBase(
String^ iniFileName,
String^ sectionName,
bool useCategoryAttributes,
bool requireSerializeSettingAttribute
)
new :
iniFileName : string *
sectionName : string *
useCategoryAttributes : bool *
requireSerializeSettingAttribute : bool -> IniSettingsBase
GSF.Configuration.IniSettingsBase = function(iniFileName, sectionName, useCategoryAttributes, requireSerializeSettingAttribute);
View SourceParameters
- iniFileName String
- Name of INI file to use for accessing settings.
- sectionName String
- Name of default section to use to get and set settings from INI file.
- useCategoryAttributes Boolean
- Determines if category attributes will be used for section names.
- requireSerializeSettingAttribute Boolean
-
Assigns flag that determines if SerializeSettingAttribute is required
to exist before a field or property is serialized to the INI file.
Remarks
If
useCategoryAttributes is false, all settings will be placed in section labeled by the
sectionName value; otherwise, if a
CategoryAttribute exists on a field or
property then the member value will serialized into the INI file in a section labeled the same
as the
Category value and if the attribute doesn't exist the member value
will serialized into the section labeled by the
sectionName value.
See Also