Share via


DictConfigurationKey.new Method

Initializes a new instance of the Object class.

Syntax

public void new(ConfigurationKeyId configurationKeyId)

Run On

Called

Parameters

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; 
}

See Also

Reference

DictConfigurationKey Class