IRegistryTools.SetRegistryFromCurrentUserRoot(String, String, Object) 方法

定义

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

public:
 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
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

适用于