Config Helper
Read(String) Method
Example 



KellermanSoftware.ConfigHelper Namespace > RegistryReaderWriter Class > Read Method : Read(String) Method
Read from the registry using the DefaultBaseLocation and the DefaultSubKey
Syntax
Public Overloads Function Read( _
   ByVal keyName As String _
) As Object
Dim instance As RegistryReaderWriter
Dim keyName As String
Dim value As Object
 
value = instance.Read(keyName)
public object Read( 
   string keyName
)
public:
Object^ Read( 
   String^ keyName
) 

Parameters

keyName
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");
'Trial Mode
Dim reg As New RegistryReaderWriter()
 
'License Mode
'Dim reg As New RegistryReaderWriter("John Smith 10000", "psdfljksfdl==")
 
reg.Write("ReadTest", "ReadTestValue")
 
Dim registryValue As Object = 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