IRegistryTools.SetRegistryFromLocalMachineRoot 方法

定义

从 HKLM 根注册表设置注册表中的值

public bool SetRegistryFromLocalMachineRoot (string regKeyPath, string regKeyName, object value, bool use64Bit = false);
abstract member SetRegistryFromLocalMachineRoot : string * string * obj * bool -> bool
Public Function SetRegistryFromLocalMachineRoot (regKeyPath As String, regKeyName As String, value As Object, Optional use64Bit As Boolean = false) As Boolean

参数

regKeyPath
String

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

regKeyName
String

键下的变量名称

value
Object

要设置的值

use64Bit
Boolean

可选,如果设置为 true,则使用 64 位注册表,否则默认为 32 位

返回

如果设置,则为 true;如果出现错误,则为 false

适用于