Config Helper
Read(RegistryLocation,String,String) Method
Example 



KellermanSoftware.ConfigHelper Namespace > RegistryReaderWriter Class > Read Method : Read(RegistryLocation,String,String) Method
Read from the registry using the specified location, sub key, and key name
Syntax
Public Overloads Function Read( _
   ByVal baseLocation As RegistryLocation, _
   ByVal subKey As String, _
   ByVal keyName As String _
) As Object
Dim instance As RegistryReaderWriter
Dim baseLocation As RegistryLocation
Dim subKey As String
Dim keyName As String
Dim value As Object
 
value = instance.Read(baseLocation, subKey, keyName)
public object Read( 
   RegistryLocation baseLocation,
   string subKey,
   string keyName
)
public:
Object^ Read( 
   RegistryLocation baseLocation,
   String^ subKey,
   String^ keyName
) 

Parameters

baseLocation
subKey
keyName
Example
//Trial Mode
RegistryReaderWriter reg = new RegistryReaderWriter();
 
//License Mode
//RegistryReaderWriter reg = new RegistryReaderWriter("John Smith 10000", "psdfljksfdl==");
 
reg.Write(RegistryLocation.CurrentUser, "SOFTWARE\\KellermanSoftware\\RegistryHelper", "ReadExtendedTest", "ReadExtendedTestValue");
 
object registryValue = reg.Read(RegistryLocation.CurrentUser, "SOFTWARE\\KellermanSoftware\\RegistryHelper", "ReadExtendedTest");
'Trial Mode
Dim reg As New RegistryReaderWriter()
 
'License Mode
'Dim reg As New RegistryReaderWriter("John Smith 10000", "psdfljksfdl==")
 
reg.Write(RegistryLocation.CurrentUser, "SOFTWARE\KellermanSoftware\RegistryHelper", "ReadExtendedTest", "ReadExtendedTestValue")
 
Dim registryValue As Object = reg.Read(RegistryLocation.CurrentUser, "SOFTWARE\KellermanSoftware\RegistryHelper", "ReadExtendedTest")
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