Microsoft SDK for Java

setValue

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

setValue(String subKey, String val)
setValue(String subKey, byte val[])
setValue(String subKey, int val)

setValue(String subKey, String val)

Sets a string value into a subkey.

Syntax

public void setValue(String subKey, String val);

Parameters

subKey The subkey that holds the value.
val The string that is written out.

setValue(String subKey, byte val[])

Sets a byte array into a subkey.

Syntax

public void setValue(String subKey, byte val[]);

Parameters

subKey The subkey that holds the value.
val The array that is written out.

setValue(String subKey, int val)

Sets an integer value into a subkey.

Syntax

public void setValue(String subKey, int val);

Parameters

subKey The subkey that holds the value.
val The integer that is written out.

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