API:System.Win.Registry.TRegIniFile.DeleteKey
Delphi
procedure DeleteKey(const Section, Ident: string);
C++
HIDESBASE void __fastcall DeleteKey(const System::UnicodeString Section, const System::UnicodeString Ident);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegIniFile |
説明
指定されたキーおよびキーに関連付けられたデータをレジストリから削除します。
System.Win.Registry.TRegIniFile.DeleteKey は System.Win.Registry.TRegistry.DeleteKey を継承しています。以下の内容はすべて System.Win.Registry.TRegistry.DeleteKey を参照しています。
指定されたキーおよびキーに関連付けられたデータをレジストリから削除します。
DeleteKey メソッドを呼び出すと,指定されたキーおよび(もしあれば)関連付けられたデータをレジストリから削除できます。キーにサブキーがあれば,サブキーとその関連付けられたデータも削除されます。Windows 95 では,キーにサブキーがある場合,サブキーとそれに関連するすべてのデータが削除されます。Windows NT では,DeleteKey を個別に呼び出して,サブキーを明示的に削除する必要があります。
DeleteKey は削除が正しく行われると true を返します。エラーが起きたときには DeleteKey は false を返します。