Overview | Methods | This Package | All Packages
Closes the current key and optionally flushes the registry key back to the registry if the contents have been modified.
Syntax
public void close()
public void close( boolean flushCache )
Parameters
flushCache
If set to true, the key is flushed to disk if it has been modified.
Remarks
The close method closes the registry key that is currently being referenced. If you use the second version of this method and assign a true value to the method's parameter, any information that is in the cache for the registry key is written back into the registry. Use this method to close a registry key assigned to a RegistryKey object so that the object can be assigned a different registry key. Calling the first version of the close method is the same as calling the second version and assigning a true value to the argument.
See Also createSubKey, deleteSubKey