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

Erases a data value that is associated with a key.

Call DeleteKey to erase a data value associated with a key. Section is string containing the name of the system registry key containing the value to delete. Ident is a string containing the name of the data value to delete.

Note: DeleteKey for TRegIniFile obscures the DeleteKey method of TRegistry, from which TRegIniFile descends. You can access TRegistry's DeleteKey method by casting the call to DeleteKey as type TRegistry, or by using the scope resolution operator.

Note: On Windows 95, DeleteKey will delete the key and all its subkeys. On Windows NT, the subkeys must be explicitly deleted by separate calls to DeleteKey.

See Also