[This is preliminary documentation and is subject to change.]
The IConfigSectionNode type exposes the following members.Methods
Name | Description | |
---|---|---|
![]() | AttrByIndex |
Returns attribute node by its index or empty attribute if real attribute with such index does not exist
|
![]() | AttrByName |
Returns attribute node by its name or empty attribute if real attribute with such name does not exist
|
![]() | AttrsToStringMap |
Returns attribute values as string map
|
![]() | EvaluateValueVariables |
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\"...`
|
![]() | IsSameName(String) |
Returns true when another name is the same as this node's name
(Inherited from IConfigNode.) |
![]() | IsSameName(IConfigNode) |
Returns true when another node has the same name as this one
(Inherited from IConfigNode.) |
![]() | IsSameNameAttr(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
|
![]() | IsSameNameAttr(IConfigSectionNode) |
Returns true when this and another nodes both have attribute "name" and their values are equal per case-insensitive culture-neutral comparison
|
![]() | Navigate |
Navigates the path and return the appropriate node. Example '!/nfx/logger/destination/$file-name'
|
![]() | NavigateSection |
Navigates the path and return the appropriate section node. Example '!/nfx/logger/destination'
|
![]() | ToConfigurationJSONDataMap |
Returns the contents of this node per JSONConfiguration specification. Contrast with ToJSONDataMap
|
![]() | ToJSONDataMap |
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
|
![]() | ToJSONString |
Serializes configuration tree rooted at this node into JSON configuration format and returns it as a string
|
![]() | ToLaconicString |
Serializes configuration tree rooted at this node into Laconic format and returns it as a string
|
![]() | ValueAsBool | (Inherited from IConfigNode.) |
![]() | ValueAsByte | (Inherited from IConfigNode.) |
![]() | ValueAsByteArray | (Inherited from IConfigNode.) |
![]() | ValueAsDateTime | (Inherited from IConfigNode.) |
![]() | ValueAsDecimal | (Inherited from IConfigNode.) |
![]() | ValueAsDouble | (Inherited from IConfigNode.) |
![]() | ValueAsEnum TEnum | (Inherited from IConfigNode.) |
![]() | ValueAsFloat | (Inherited from IConfigNode.) |
![]() | ValueAsGDID | (Inherited from IConfigNode.) |
![]() | ValueAsGUID | (Inherited from IConfigNode.) |
![]() | ValueAsInt | (Inherited from IConfigNode.) |
![]() | ValueAsLong | (Inherited from IConfigNode.) |
![]() | ValueAsNullableBool | (Inherited from IConfigNode.) |
![]() | ValueAsNullableByte | (Inherited from IConfigNode.) |
![]() | ValueAsNullableDateTime | (Inherited from IConfigNode.) |
![]() | ValueAsNullableDecimal | (Inherited from IConfigNode.) |
![]() | ValueAsNullableDouble | (Inherited from IConfigNode.) |
![]() | ValueAsNullableEnum TEnum | (Inherited from IConfigNode.) |
![]() | ValueAsNullableFloat | (Inherited from IConfigNode.) |
![]() | ValueAsNullableGDID | (Inherited from IConfigNode.) |
![]() | ValueAsNullableGUID | (Inherited from IConfigNode.) |
![]() | ValueAsNullableInt | (Inherited from IConfigNode.) |
![]() | ValueAsNullableLong | (Inherited from IConfigNode.) |
![]() | ValueAsNullableSByte | (Inherited from IConfigNode.) |
![]() | ValueAsNullableShort | (Inherited from IConfigNode.) |
![]() | ValueAsNullableTimeSpan | (Inherited from IConfigNode.) |
![]() | ValueAsNullableUInt | (Inherited from IConfigNode.) |
![]() | ValueAsNullableULong | (Inherited from IConfigNode.) |
![]() | ValueAsNullableUShort | (Inherited from IConfigNode.) |
![]() | ValueAsSByte | (Inherited from IConfigNode.) |
![]() | ValueAsShort | (Inherited from IConfigNode.) |
![]() | ValueAsString | (Inherited from IConfigNode.) |
![]() | ValueAsTimeSpan | (Inherited from IConfigNode.) |
![]() | ValueAsType |
Tries to get value as specified type or throws if it can not be converted
(Inherited from IConfigNode.) |
![]() | ValueAsUInt | (Inherited from IConfigNode.) |
![]() | ValueAsULong | (Inherited from IConfigNode.) |
![]() | ValueAsUShort | (Inherited from IConfigNode.) |
Extension Methods
Name | Description | |
---|---|---|
![]() | HasTheSameContent |
Returns true when both config nodes represents the same manifest - that is the same file structure
(Defined by ManifestUtils.) |
Properties
Name | Description | |
---|---|---|
![]() | AttrCount |
Returns number of child attribute nodes
|
![]() | Attributes |
Enumerates all attribute nodes
|
![]() | ChildCount |
Returns number of child section nodes
|
![]() | Children |
Enumerates all child nodes
|
![]() | Configuration |
References configuration this node is under
(Inherited from IConfigNode.) |
![]() | EvaluatedValue |
Returns null or value of this node with all variables evaluated
(Inherited from IConfigNode.) |
![]() | Exists |
Determines whether this node really exists in configuration or is just a sentinel empty node
(Inherited from IConfigNode.) |
![]() | HasAttributes |
Indicates whether this node has any associated attributes
|
![]() | HasChildren |
Indicates whether this node has any child section nodes
|
![]() | Item Int32 |
Retrieves section node by index or empty node instance if section node with such index could not be found
|
![]() | Item 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
|
![]() | Name | (Inherited from INamed.) |
![]() | Parent |
References parent node or empty node if this is the top-most node with no parent
(Inherited from IConfigNode.) |
![]() | RootPath |
Returns a path from root to this node
(Inherited from IConfigNode.) |
![]() | Value |
Returns null or value of this node with all variables evaluated
(Inherited from IConfigNode.) |
![]() | VerbatimValue |
Returns varbatim (without variable evaluation) node value or null
(Inherited from IConfigNode.) |
See Also