API:System.Win.Registry.TRegIniFile.DeleteKey

提供: RAD Studio API Documentation
移動先: 案内検索

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 を返します。

関連項目