Class FileConfiguration
Provides file-based configuration base object used for concrete implementations such as XML or INI file base configurations
Inheritance
System.Object
FileConfiguration
Implements
System.ICloneable
Inherited Members
Configuration.RunMacro(IConfigSectionNode, String, String, IConfigSectionNode, IMacroRunner, Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Conf
Assembly: Azos.dll
Syntax
[Serializable]
public abstract class FileConfiguration : Configuration, ICloneable
Constructors
FileConfiguration()
Creates an instance of a new configuration not bound to any file
Declaration
protected FileConfiguration()
FileConfiguration(String)
Creates an isntance of configuration and reads contents from the file
Declaration
protected FileConfiguration(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
Fields
m_FileName
Declaration
protected string m_FileName
Field Value
Type | Description |
---|---|
System.String |
Properties
FileName
Declaration
public string FileName { get; }
Property Value
Type | Description |
---|---|
System.String |
IsReadOnly
Indicates whether configuration is readonly or may be modified and saved
Declaration
public override bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
SaveAs(String)
Saves configuration into specified file
Declaration
public virtual void SaveAs(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
SetReadOnly(Boolean)
Declaration
public void SetReadOnly(bool val)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | val |
Implements
System.ICloneable