共用方式為


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

格式機碼\子機碼\subsubkey 的登錄機碼路徑

use64Bit
Boolean

如果為 true,則會使用 64 位登錄,否則會使用 32 位

傳回

如果已移除則為 True,如果發生錯誤則為 false

適用於