Microsoft SDK for Java

getIntValue

The getIntValue method of the RegKey class contains the following signatures.

getIntValue(String name)
getIntValue(String name, int defval)

getIntValue(String name)

Queries an integer value from the registry.

Syntax

public int getIntValue(String name);

Return Value

Returns the integer value contained in the subKey.

Parameters

name The subKey containing the value wanted. The name must be a subkey of the current key.

getIntValue(String name, int defval)

Queries an integer value from the registry. The name is a subkey of the current key. If the named value does not exist in the registry, the default value is returned.

Syntax

public int getIntValue(String name, int defval);

Return Value

Returns the integer value contained in the subKey or the default value if the named value does not exist in the registry.

Parameters

name The subkey containing the value wanted.
defval The default value.

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