System.Win.Registry.TRegistry.CloseKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CloseKey;

C++

void __fastcall CloseKey(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistry

Description

Writes the current key to the registry and closes the key.

Call CloseKey to write the current key to the registry and close the key. An application should not keep keys open any longer than necessary. Many TRegistry methods routinely call CloseKey after reading from or writing to the registry. Calling CloseKey when there is no current key has no effect.

Note: When an application closes a key, the key is written to the registry. The LazyWrite property determines how the write takes place.

See Also

Code Examples