API Reference
| Classic JavaDoc |
RegistryKey.setValue
public void setValue(String valueName, RegistryValue value)
public void setValue(String subKey, String valueName, RegistryValue value)
public void setValue(String valueName, String value)
public void setValue(String valueName, int value)
public void setValue(String valueName, byte binaryData)
Sets the specified value in this registry key.Parameters:
Throws:
valueName | the name of the value to be set. |
value | the value to be set. |
RegistryException | if this key has been closed or any other error occurs. |
public void setValue(String subKey, String valueName, RegistryValue value)
Sets the specified value in the specified sub-key of this registry key.
Throws:
Is equivalent to:
openKey(subKey).setValue(valueName, value);
subKey | the sub-key where the value will be stored. |
valueName | the name of the value to be set. |
value | the value to be set. |
RegistryException | if this key has been closed or any other error occurs. |
public void setValue(String valueName, String value)
Sets the specified String value in this registry key. The type of the value is set to REG_SZ.Parameters:
Throws:
valueName | the name of the value to be set. |
value | the value to be set. |
RegistryException | if this key has been closed or any other error occurs. |
public void setValue(String valueName, int value)
Sets the specified Integer value in this registry key. The type of the value is set to REG_DWORD.Parameters:
Throws:
valueName | the name of the value to be set. |
value | the value to be set. |
RegistryException | if this key has been closed or any other error occurs. |
public void setValue(String valueName, byte binaryData)
Sets the specified Binary data value in this registry key. The type of the value is set to REG_BINARY.Parameters:
Throws:
valueName | the name of the value to be set. |
binaryData | the value to be set. |
RegistryException | if this key has been closed or any other error occurs. |
Community comments
Powered by JavaDocPlus