SettingsSectionGetOrAdd Method

Gets the value of the setting with the specified key, if it exists; otherwise, the default value for the parameter.

Definition

Namespace: Gemstone.Configuration
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.165 -- Release Build+e14d337b173ad33e50be6747ce5b02f477f99484
public Object? GetOrAdd(
	string key,
	Object? defaultValue,
	string description,
	string[]? switchMappings = null
)

Parameters

key  String
Key name of setting to get, case-insensitive.
defaultValue  Object
Default value if key does not exist.
description  String
Description of the setting.
switchMappings  String  (Optional)
Optional array of switch mappings for the setting.

Return Value

Object
Value of the setting with the specified key, if it exists; otherwise, the default value for the parameter.

See Also