IConfigSectionNode MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The IConfigSectionNode type exposes the following members.
Methods

  NameDescription
Public methodAttrByIndex
Returns attribute node by its index or empty attribute if real attribute with such index does not exist
Public methodAttrByName
Returns attribute node by its name or empty attribute if real attribute with such name does not exist
Public methodAttrsToStringMap
Returns attribute values as string map
Public methodEvaluateValueVariables
Evaluates a value string expanding all variables with var-paths relative to this node. Evaluates configuration variables such as "$(varname)" or "$(@varname)". Varnames are paths to other config nodes from the same configuration or variable names when prefixed with "~". If varname starts with "@" then it gets combined with input as path string. "~" is used to qualify environment vars that get resolved through Configuration.EnvironmentVarResolver Example: `....add key="Schema.$(/A/B/C/$attr)" value="$(@~HOME)bin\Transforms\"...`
Public methodIsSameName(String)
Returns true when another name is the same as this node's name
(Inherited from IConfigNode.)
Public methodIsSameName(IConfigNode)
Returns true when another node has the same name as this one
(Inherited from IConfigNode.)
Public methodIsSameNameAttr(String)
Returns true when this node has an attribute called "name" and its value is euqal to the supplied value per case-insensitive culture-neutral comparison
Public methodIsSameNameAttr(IConfigSectionNode)
Returns true when this and another nodes both have attribute "name" and their values are equal per case-insensitive culture-neutral comparison
Public methodNavigate
Navigates the path and return the appropriate node. Example '!/nfx/logger/destination/$file-name'
Public methodNavigateSection
Navigates the path and return the appropriate section node. Example '!/nfx/logger/destination'
Public methodToConfigurationJSONDataMap
Returns the contents of this node per JSONConfiguration specification. Contrast with ToJSONDataMap
Public methodToJSONDataMap
Converts this ConfigSectionNode to JSONDataMap. Contrast with ToConfigurationJSONDataMap Be carefull: that this operation can "loose" data from ConfigSectionNode. In other words some ConfigSectionNode information can not be reflected in corresponding JSONDataMap, for example this method overwrites duplicate key names and does not support section values
Public methodToJSONString
Serializes configuration tree rooted at this node into JSON configuration format and returns it as a string
Public methodToLaconicString
Serializes configuration tree rooted at this node into Laconic format and returns it as a string
Public methodValueAsBool (Inherited from IConfigNode.)
Public methodValueAsByte (Inherited from IConfigNode.)
Public methodValueAsByteArray (Inherited from IConfigNode.)
Public methodValueAsDateTime (Inherited from IConfigNode.)
Public methodValueAsDecimal (Inherited from IConfigNode.)
Public methodValueAsDouble (Inherited from IConfigNode.)
Public methodValueAsEnum TEnum  (Inherited from IConfigNode.)
Public methodValueAsFloat (Inherited from IConfigNode.)
Public methodValueAsGDID (Inherited from IConfigNode.)
Public methodValueAsGUID (Inherited from IConfigNode.)
Public methodValueAsInt (Inherited from IConfigNode.)
Public methodValueAsLong (Inherited from IConfigNode.)
Public methodValueAsNullableBool (Inherited from IConfigNode.)
Public methodValueAsNullableByte (Inherited from IConfigNode.)
Public methodValueAsNullableDateTime (Inherited from IConfigNode.)
Public methodValueAsNullableDecimal (Inherited from IConfigNode.)
Public methodValueAsNullableDouble (Inherited from IConfigNode.)
Public methodValueAsNullableEnum TEnum  (Inherited from IConfigNode.)
Public methodValueAsNullableFloat (Inherited from IConfigNode.)
Public methodValueAsNullableGDID (Inherited from IConfigNode.)
Public methodValueAsNullableGUID (Inherited from IConfigNode.)
Public methodValueAsNullableInt (Inherited from IConfigNode.)
Public methodValueAsNullableLong (Inherited from IConfigNode.)
Public methodValueAsNullableSByte (Inherited from IConfigNode.)
Public methodValueAsNullableShort (Inherited from IConfigNode.)
Public methodValueAsNullableTimeSpan (Inherited from IConfigNode.)
Public methodValueAsNullableUInt (Inherited from IConfigNode.)
Public methodValueAsNullableULong (Inherited from IConfigNode.)
Public methodValueAsNullableUShort (Inherited from IConfigNode.)
Public methodValueAsSByte (Inherited from IConfigNode.)
Public methodValueAsShort (Inherited from IConfigNode.)
Public methodValueAsString (Inherited from IConfigNode.)
Public methodValueAsTimeSpan (Inherited from IConfigNode.)
Public methodValueAsType
Tries to get value as specified type or throws if it can not be converted
(Inherited from IConfigNode.)
Public methodValueAsUInt (Inherited from IConfigNode.)
Public methodValueAsULong (Inherited from IConfigNode.)
Public methodValueAsUShort (Inherited from IConfigNode.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodHasTheSameContent
Returns true when both config nodes represents the same manifest - that is the same file structure
(Defined by ManifestUtils.)
Back to Top
Properties

  NameDescription
Public propertyAttrCount
Returns number of child attribute nodes
Public propertyAttributes
Enumerates all attribute nodes
Public propertyChildCount
Returns number of child section nodes
Public propertyChildren
Enumerates all child nodes
Public propertyConfiguration
References configuration this node is under
(Inherited from IConfigNode.)
Public propertyEvaluatedValue
Returns null or value of this node with all variables evaluated
(Inherited from IConfigNode.)
Public propertyExists
Determines whether this node really exists in configuration or is just a sentinel empty node
(Inherited from IConfigNode.)
Public propertyHasAttributes
Indicates whether this node has any associated attributes
Public propertyHasChildren
Indicates whether this node has any child section nodes
Public propertyItem Int32 
Retrieves section node by index or empty node instance if section node with such index could not be found
Public propertyItem  String  
Retrieves section node by names, from left to right until existing node is found. If no existing node could be found then empty node instance is returned
Public propertyName (Inherited from INamed.)
Public propertyParent
References parent node or empty node if this is the top-most node with no parent
(Inherited from IConfigNode.)
Public propertyRootPath
Returns a path from root to this node
(Inherited from IConfigNode.)
Public propertyValue
Returns null or value of this node with all variables evaluated
(Inherited from IConfigNode.)
Public propertyVerbatimValue
Returns varbatim (without variable evaluation) node value or null
(Inherited from IConfigNode.)
Back to Top
See Also