共用方式為


IRegistryTools2.DeleteRegistryValueFromCurrentUserRoot(String, String) 方法

定義

從 HKCU 根登錄中的機碼中刪除指定的登錄值

public:
 bool DeleteRegistryValueFromCurrentUserRoot(System::String ^ regKeyPath, System::String ^ regKeyName);
public bool DeleteRegistryValueFromCurrentUserRoot (string regKeyPath, string regKeyName);
abstract member DeleteRegistryValueFromCurrentUserRoot : string * string -> bool
Public Function DeleteRegistryValueFromCurrentUserRoot (regKeyPath As String, regKeyName As String) As Boolean

參數

regKeyPath
String

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

regKeyName
String

機碼底下的變數名稱

傳回

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

適用於