Microsoft SDK for Java

RegistryKey.getValueCount

Retrieves the number of values defined in the current key.

Syntax

public int getValueCount()

Return Value

Returns the number of values defined.

Remarks

Use the getValueCount method to get a count of the values defined for the currently opened key. Use this method to assist in looping through all the values in the current key. To get an array containing all the value names for the current key, use the getValueNames method.

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