IRegistryTools2.DeleteRegistryKeyFromLocalMachineRoot(String, Boolean) 方法

定义

删除 HKLM 根注册表中的指定注册表项和所有子项

public bool DeleteRegistryKeyFromLocalMachineRoot (string regKeyPath, bool use64Bit = false);
abstract member DeleteRegistryKeyFromLocalMachineRoot : string * bool -> bool
Public Function DeleteRegistryKeyFromLocalMachineRoot (regKeyPath As String, Optional use64Bit As Boolean = false) As Boolean

参数

regKeyPath
String

格式为 key\subkey\subsubkey 的注册表项的路径

use64Bit
Boolean

如果为 true,则使用 64 位注册表,否则使用 32 位

返回

如果删除,则为 True;如果出错,则为 false

适用于