Click or drag to resize

CategorizedSettingsElement Class

Represents a settings entry in the config file.
Inheritance Hierarchy
SystemObject
  System.ConfigurationConfigurationElement
    GSF.ConfigurationCategorizedSettingsElement

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class CategorizedSettingsElement : ConfigurationElement
View Source

The CategorizedSettingsElement type exposes the following members.

Properties
 NameDescription
Public propertyCategory Gets or sets the CategorizedSettingsElementCollection to which this CategorizedSettingsElement belongs.
Public propertyCurrentConfigurationGets a reference to the top-level Configuration instance that represents the configuration hierarchy that the current ConfigurationElement instance belongs to.
(Inherited from ConfigurationElement)
Public propertyDescription Gets or sets the description of the setting.
Public propertyElementInformationGets an ElementInformation object that contains the non-customizable information and functionality of the ConfigurationElement object.
(Inherited from ConfigurationElement)
Protected propertyElementPropertyGets the ConfigurationElementProperty object that represents the ConfigurationElement object itself.
(Inherited from ConfigurationElement)
Public propertyEncrypted Gets or sets a boolean value that indicates whether the setting value is to be encrypted.
Protected propertyEvaluationContextGets the ContextInformation object for the ConfigurationElement object.
(Inherited from ConfigurationElement)
Protected propertyHasContextGets a value that indicates whether the CurrentConfiguration property is .
(Inherited from ConfigurationElement)
Protected propertyItemConfigurationPropertyGets or sets a property or attribute of this configuration element.
(Inherited from ConfigurationElement)
Protected propertyItemStringGets or sets a property, attribute, or child element of this configuration element.
(Inherited from ConfigurationElement)
Public propertyLockAllAttributesExceptGets the collection of locked attributes.
(Inherited from ConfigurationElement)
Public propertyLockAllElementsExceptGets the collection of locked elements.
(Inherited from ConfigurationElement)
Public propertyLockAttributesGets the collection of locked attributes
(Inherited from ConfigurationElement)
Public propertyLockElementsGets the collection of locked elements.
(Inherited from ConfigurationElement)
Public propertyLockItemGets or sets a value indicating whether the element is locked.
(Inherited from ConfigurationElement)
Public propertyName Gets or sets the identifier of the setting.
Protected propertyPropertiesGets the collection of properties.
(Inherited from ConfigurationElement)
Public propertyScope Gets or sets the SettingScope.
Public propertySerializedValue Gets value that will actually be serialized to the configuration file.
Public propertyValue Gets or sets the value of the setting.
Top
Methods
 NameDescription
Protected methodDeserializeElementReads XML from the configuration file.
(Inherited from ConfigurationElement)
Public methodEqualsCompares the current ConfigurationElement instance to the specified object.
(Inherited from ConfigurationElement)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeGets a unique value representing the current ConfigurationElement instance.
(Inherited from ConfigurationElement)
Protected methodGetTransformedAssemblyStringReturns the transformed version of the specified assembly name.
(Inherited from ConfigurationElement)
Protected methodGetTransformedTypeStringReturns the transformed version of the specified type name.
(Inherited from ConfigurationElement)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitSets the ConfigurationElement object to its initial state.
(Inherited from ConfigurationElement)
Protected methodInitializeDefaultUsed to initialize a default set of values for the ConfigurationElement object.
(Inherited from ConfigurationElement)
Protected methodIsModifiedIndicates whether this configuration element has been modified since it was last saved or loaded, when implemented in a derived class.
(Inherited from ConfigurationElement)
Public methodIsReadOnlyGets a value indicating whether the ConfigurationElement object is read-only.
(Inherited from ConfigurationElement)
Protected methodListErrorsAdds the invalid-property errors in this ConfigurationElement object, and in all subelements, to the passed list.
(Inherited from ConfigurationElement)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnDeserializeUnrecognizedAttributeGets a value indicating whether an unknown attribute is encountered during deserialization.
(Inherited from ConfigurationElement)
Protected methodOnDeserializeUnrecognizedElementGets a value indicating whether an unknown element is encountered during deserialization.
(Inherited from ConfigurationElement)
Protected methodOnRequiredPropertyNotFoundThrows an exception when a required property is not found.
(Inherited from ConfigurationElement)
Protected methodPostDeserializeCalled after deserialization.
(Inherited from ConfigurationElement)
Protected methodPreSerializeCalled before serialization.
(Inherited from ConfigurationElement)
Protected methodResetResets the internal state of the ConfigurationElement object, including the locks and the properties collections.
(Inherited from ConfigurationElement)
Protected methodResetModifiedResets the value of the IsModified method to when implemented in a derived class.
(Inherited from ConfigurationElement)
Protected methodSerializeElementWrites the contents of this configuration element to the configuration file when implemented in a derived class.
(Inherited from ConfigurationElement)
Protected methodSerializeToXmlElementWrites the outer tags of this configuration element to the configuration file when implemented in a derived class.
(Inherited from ConfigurationElement)
Public methodSetCryptoKey Sets the key to be used for encrypting and decrypting the Value.
Protected methodSetPropertyValueSets a property to the specified value.
(Inherited from ConfigurationElement)
Protected methodSetReadOnlySets the IsReadOnly property for the ConfigurationElement object and all subelements.
(Inherited from ConfigurationElement)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodUnmergeModifies the ConfigurationElement object to remove all values that should not be saved.
(Inherited from ConfigurationElement)
Public methodUpdate(Object) Updates setting information.
Public methodUpdate(Object, String) Updates setting information.
Public methodUpdate(Object, String, Boolean) Updates setting information.
Public methodUpdate(Object, String, Boolean, SettingScope) Updates setting information.
Public methodValueAsT Gets the setting value as the specified type.
Public methodValueAsT(T) Gets the setting value as the specified type.
Public methodValueAsBoolean Gets the setting value as a boolean.
Public methodValueAsBoolean(Boolean) Gets the setting value as a boolean.
Public methodValueAsByte Gets the setting value as a byte.
Public methodValueAsByte(Byte) Gets the setting value as a byte.
Public methodValueAsChar Gets the setting value as a char.
Public methodValueAsChar(Char) Gets the setting value as a char.
Public methodValueAsDateTime Gets the setting value as DateTime.
Public methodValueAsDateTime(DateTime) Gets the setting value as DateTime.
Public methodValueAsDecimal Gets the setting value as a decimal.
Public methodValueAsDecimal(Decimal) Gets the setting value as a decimal.
Public methodValueAsDouble Gets the setting value as a double.
Public methodValueAsDouble(Double) Gets the setting value as a double.
Public methodValueAsInt16 Gets the setting value as a short.
Public methodValueAsInt16(Int16) Gets the setting value as a short.
Public methodValueAsInt32 Gets the setting value as an int.
Public methodValueAsInt32(Int32) Gets the setting value as an int.
Public methodValueAsInt64 Gets the setting value as a long.
Public methodValueAsInt64(Int64) Gets the setting value as a long.
Public methodValueAsSByte Gets the setting value as a signed byte.
Public methodValueAsSByte(SByte) Gets the setting value as a signed byte.
Public methodValueAsSingle Gets the setting value as a float.
Public methodValueAsSingle(Single) Gets the setting value as a float.
Public methodValueAsString Gets the setting value as a string.
Public methodValueAsString(String) Gets the setting value as a string.
Public methodValueAsUInt16 Gets the setting value as an unsigned short.
Public methodValueAsUInt16(UInt16) Gets the setting value as an unsigned short.
Public methodValueAsUInt32 Gets the setting value as an unsigned int.
Public methodValueAsUInt32(UInt32) Gets the setting value as an unsigned int.
Public methodValueAsUInt64 Gets the setting value as an unsigned long.
Public methodValueAsUInt64(UInt64) Gets the setting value as an unsigned long.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultDescription Specifies the default value for the Description property.
Public fieldStatic memberDefaultEncrypted Specifies the default value for the Encrypted property.
Public fieldStatic memberDefaultScope Specifies the default value for the Scope property.
Public fieldStatic memberDefaultValue Specifies the default value for the Value property.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also