DictConfigurationKey.newmethod(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Object class.
public:
void newmethod(int _configurationKeyId);
public void newmethod (int _configurationKeyId);
override this.newmethod : int -> unit
Public Sub newmethod (_configurationKeyId As Integer)
Parameters
- _configurationKeyId
- Int32
The ID of the configuration key that is used to create the instance of the DictConfigurationKey class.
Remarks
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;
}