DictConfigurationKey.new Method
Initializes a new instance of the Object class.
Syntax
public void new(ConfigurationKeyId configurationKeyId)
Run On
Called
Parameters
- configurationKeyId
Type: ConfigurationKeyId Extended Data Type
The ID of the configuration key that is used to create the instance of the DictConfigurationKey class.
Examples
The following example shows how to create a new instance of the DictConfigurationKey class during an enumeration of configuration keys.
ConfigurationKeySet configKeySet;
DictConfigurationKey dictConfigKey;
str strOutput;
int i;
configKeySet = new ConfigurationKeySet();
configKeySet.loadSystemSetup();
// Output the configuration key names and their enable state.
for (i=1; i <= configKeySet.cnt(); i++)
{
dictConfigKey = new DictConfigurationKey(configKeySet.cnt2Id(i));
strOutput = dictConfigKey.enabled() ? "enabled" : "disabled";
strOutput += " " + dictConfigKey.name();
print strOutput;
}