API:System.Win.Registry.TRegIniFile.DeleteKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DeleteKey(const Section, Ident: string);

C++

HIDESBASE void __fastcall DeleteKey(const System::UnicodeString Section, const System::UnicodeString Ident);

Properties

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

Description

Removes a specified key and its associated data from the registry.

System.Win.Registry.TRegIniFile.DeleteKey inherits from System.Win.Registry.TRegistry.DeleteKey. All content below this line refers to System.Win.Registry.TRegistry.DeleteKey.

Removes a specified key and its associated data from the registry.

Call DeleteKey to remove a specified key and its associated data, if any, from the registry. Under Windows 95, if the key has subkeys, the subkeys and any associated data are also removed. Under Windows NT, subkeys must be explicitly deleted by separate calls to DeleteKey.

DeleteKey returns true if key deletion is successful. On error, DeleteKey returns false.

See Also

Code Examples