IRegistryTools.SetRegistryFromCurrentUserRoot(String, String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 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