Click or drag to resize

DefaultConfigAdd Method (String, Object, ValueReference)

Add a default configuration item.

Namespace:  AskiaPortalCmn.Setup
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public void Add(
	string key,
	Object value,
	ValueReference reference = ValueReference.None
)

Parameters

key
Type: SystemString
Key of the configuration item.
value
Type: SystemObject
Default configuration item value.
reference (Optional)
Type: AskiaPortalCmn.ConfigurationValueReference
Reference associated with the configuration item.
Exceptions
Remarks
The type of the value must be String, Boolean, Int32, Double or Guid.
The type of the default value will explicitly define the type accepted by the configuration in classical usage.

If a unmanaged type is set, this method will refuse to add the configuration and throw an exception.
See Also