| ConfigurationItem Constructor |
Loads a configuration item with the specified name from its file located
in a folder at the supplied path.
Namespace:
Galactic.Configuration
Assembly:
Galactic.Configuration (in Galactic.Configuration.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public ConfigurationItem(
string folderPath,
string name,
bool encrypted,
string value = null,
EventLog log = null,
bool readOnly = true
)
Public Sub New (
folderPath As String,
name As String,
encrypted As Boolean,
Optional value As String = Nothing,
Optional log As EventLog = Nothing,
Optional readOnly As Boolean = true
)
public:
ConfigurationItem(
String^ folderPath,
String^ name,
bool encrypted,
String^ value = nullptr,
EventLog^ log = nullptr,
bool readOnly = true
)
new :
folderPath : string *
name : string *
encrypted : bool *
?value : string *
?log : EventLog *
?readOnly : bool
(* Defaults:
let _value = defaultArg value null
let _log = defaultArg log null
let _readOnly = defaultArg readOnly true
*)
-> ConfigurationItem
Parameters
- folderPath
- Type: SystemString
The path of the folder containing the configuration item. - name
- Type: SystemString
The name of the configuration item. - encrypted
- Type: SystemBoolean
Whether to store the item in an encrypted format. - value (Optional)
- Type: SystemString
(Optional) The value of the configuration item. (Supplying a null value will retrieve the value stored
in the item if it already exists). - log (Optional)
- Type: Galactic.EventLogEventLog
(Optional) The event log to log exceptions to. May be null for no logging. - readOnly (Optional)
- Type: SystemBoolean
Whether the configuration item should be opened for reading only. Default: true
See Also