RegistryTools.SetRegistryFromCurrentUserRoot 方法

定义

重载

SetRegistryFromCurrentUserRoot(String, String, Object)

从 HKCU 根注册表设置注册表中的值。

SetRegistryFromCurrentUserRoot(String, String, Object, RegistryValueKind)

从 HKCU 根注册表设置注册表中的值。

SetRegistryFromCurrentUserRoot(String, String, Object)

从 HKCU 根注册表设置注册表中的值。

public:
 virtual bool SetRegistryFromCurrentUserRoot(System::String ^ regKeyPath, System::String ^ regKeyName, System::Object ^ value);
public bool SetRegistryFromCurrentUserRoot (string regKeyPath, string regKeyName, object value);
abstract member SetRegistryFromCurrentUserRoot : string * string * obj -> bool
override this.SetRegistryFromCurrentUserRoot : string * string * obj -> bool
Public Function SetRegistryFromCurrentUserRoot (regKeyPath As String, regKeyName As String, value As Object) As Boolean

参数

regKeyPath
String

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

regKeyName
String

键下的变量名称

value
Object

要设置的值

返回

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

实现

适用于

SetRegistryFromCurrentUserRoot(String, String, Object, RegistryValueKind)

从 HKCU 根注册表设置注册表中的值。

public bool SetRegistryFromCurrentUserRoot (string regKeyPath, string regKeyName, object value, Microsoft.Win32.RegistryValueKind valueKind);
abstract member SetRegistryFromCurrentUserRoot : string * string * obj * Microsoft.Win32.RegistryValueKind -> bool
override this.SetRegistryFromCurrentUserRoot : string * string * obj * Microsoft.Win32.RegistryValueKind -> bool
Public Function SetRegistryFromCurrentUserRoot (regKeyPath As String, regKeyName As String, value As Object, valueKind As RegistryValueKind) As Boolean

参数

regKeyPath
String

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

regKeyName
String

键下的变量名称

value
Object

要设置的值

valueKind
RegistryValueKind

RegistryValueKind 类型。 支持的类型为 DWord、QWord

返回

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

实现

适用于