Config Helper
Write(String,Object) Method
Example 



KellermanSoftware.ConfigHelper Namespace > RegistryReaderWriter Class > Write Method : Write(String,Object) Method
The key name
The registry value
Write to the registry using the DefaultBaseLocation and DefaultSubKey
Syntax
Public Overloads Sub Write( _
   ByVal keyName As String, _
   ByVal value As Object _
) 
Dim instance As RegistryReaderWriter
Dim keyName As String
Dim value As Object
 
instance.Write(keyName, value)
public void Write( 
   string keyName,
   object value
)
public:
void Write( 
   String^ keyName,
   Object^ value
) 

Parameters

keyName
The key name
value
The registry value
Example
//Trial Mode
RegistryReaderWriter reg = new RegistryReaderWriter();
 
//License Mode
//RegistryReaderWriter reg = new RegistryReaderWriter("John Smith 10000", "psdfljksfdl==");
 
reg.Write("ReadTest", "ReadTestValue");
 
object registryValue = reg.Read("ReadTest");
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RegistryReaderWriter Class
RegistryReaderWriter Members
Overload List