Sets the specified value. The string subKey is not case sensitive.
[Visual Basic] Public Sub SetValue( _ ByVal name As String, _ ByVal value As Object _ ) [C#] public void SetValue( string name, object value ); [C++] public: void SetValue( String* name, Object* value ); [JScript] public function SetValue( name : String, value : Object );
Returns NULL if name is not found.
Exception Type | Condition |
---|---|
SecurityException | The user does not have RegistryPermission.SetInclude(write, currentKey) access. |
Values allowed in the registry are dword, binary, and string (multi_sz, expanded_sz, and sz).
RegistryKey Class | RegistryKey Members | Microsoft.Win32 Namespace