Click or drag to resize

DefaultConfig.Add 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: System.String
Key of the configuration item.
value
Type: System.Object
Default configuration item value.
reference (Optional)
Type: AskiaPortalCmn.Configuration.ValueReference
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