Moyosoft Products | Services | Download | Contact us    
Java Outlook Connector
Products  >  Java Outlook Connector  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

RegistryKey.setValue

public void setValue(String valueName, RegistryValue value)

Sets the specified value in this registry key.

Parameters:
valueName   the name of the value to be set.
value   the value to be set.

Throws:
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.

Is equivalent to:
openKey(subKey).setValue(valueName, value);

Parameters:
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.

Throws:
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:
valueName   the name of the value to be set.
value   the value to be set.

Throws:
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:
valueName   the name of the value to be set.
value   the value to be set.

Throws:
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:
valueName   the name of the value to be set.
binaryData   the value to be set.

Throws:
RegistryException   if this key has been closed or any other error occurs.

Community comments



Powered by JavaDocPlus