Microsoft SDK for Java

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.