Click or drag to resize

XmlAccess class

Reads values from a configuration file (xml).
Inheritance hierarchy
SystemObject
  NetEti.FileToolsXmlAccess

Namespace: NetEti.FileTools
Assembly: NetEti.XMLAccess (in NetEti.XMLAccess.dll) Version: 1.0.0+3b7af40ae88c698645ce487c29a17724746a99fa
Syntax
public class XmlAccess : IGetStringValue

The XmlAccess Type exposes the following members.

Constructors
 NameDescription of the
Public MethodXmlAccess Reads the entire file into memory.
Back to the top
Properties
 NameDescription of the
Public PropertyDescription Returns a descriptive name of this StringValueGetter, e.g. name plus source path if applicable.
Public PropertySettings Contains all (application) settings read in from the xml file.
Back to the top
Methods
 NameDescription of the
Public MethodGetStringValue Returns exactly one value for a key. If there is no value for the key, defaultValue is returned.
Public MethodGetStringValues Returns a string array for a key. If there is no value for the key, defaultValue is returned.
Back to the top
Remarks
File: XMLAccess.cs
Minimal function specifically for various configuration files, not generalisable!
Author: Erik Nagel, NetEti

08.03.2012 Erik Nagel: created
04.03.2023 Erik Nagel: completely revised.
See also