RegistryTools.SetRegistryFromCurrentUserRoot Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetRegistryFromCurrentUserRoot(String, String, Object) |
Sets a value in the registry from the HKCU root Registry. |
SetRegistryFromCurrentUserRoot(String, String, Object, RegistryValueKind) |
Sets a value in the registry from the HKCU root Registry. |
SetRegistryFromCurrentUserRoot(String, String, Object)
Sets a value in the registry from the HKCU root Registry.
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
Parameters
- regKeyPath
- String
Path to the registry key in the format key\subkey\subsubkey
- regKeyName
- String
Variable name under the key
- value
- Object
value to set
Returns
true if set or false if error
Implements
Applies to
SetRegistryFromCurrentUserRoot(String, String, Object, RegistryValueKind)
Sets a value in the registry from the HKCU root Registry.
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
Parameters
- regKeyPath
- String
Path to the registry key in the format key\subkey\subsubkey
- regKeyName
- String
Variable name under the key
- value
- Object
value to set
- valueKind
- RegistryValueKind
RegistryValueKind type. Supported types are DWord, QWord
Returns
true if set or false if error