RegistryKey.getSubKeyCount

Overview | Methods | This Package | All Packages

RegistryKey.getSubKeyCount

Retrieves the number of subkeys for a specified key.

Syntax

public int getSubKeyCount()

Return Value

Returns the number of subkeys that are defined for the current key.

Remarks

Use the getSubKeyCount method to get the number of subkeys that are defined for the currently assigned key. Use this method to loop through all the subkeys in a for loop. To get an array containing all the names of the subkeys, use the getSubKeyNames method.