Click or drag to resize

CategorizedSettingsBaseTValueExpressionAttribute, TCategorizedSettings(String, Boolean, Boolean, TypeRegistry) Constructor

Creates a new instance of the CategorizedSettingsBaseTValueExpressionAttribute, TCategorizedSettings class for the application's configuration file.

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
protected CategorizedSettingsBase(
	string categoryName,
	bool useCategoryAttributes,
	bool requireSerializeSettingAttribute,
	TypeRegistry typeRegistry = null
)
View Source

Parameters

categoryName  String
Name of default category to use to get and set settings from configuration file.
useCategoryAttributes  Boolean
Determines if category attributes will be used for category names.
requireSerializeSettingAttribute  Boolean
Assigns flag that determines if SerializeSettingAttribute is required to exist before a field or property is serialized to the configuration file.
typeRegistry  TypeRegistry  (Optional)
Type registry to use when parsing TValueExpressionAttribute instances, or null to use DefaultTypeRegistry.
Remarks
If useCategoryAttributes is false, all settings will be placed in section labeled by the categoryName value; otherwise, if a CategoryAttribute exists on a field or property then the member value will serialized into the configuration 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 categoryName value.
See Also