Config Helper
CurrentConfiguration Property
Example 



KellermanSoftware.ConfigHelper Namespace > ConfigReaderWriter Class : CurrentConfiguration Property
Get the current configuration from the web.config or app.config
Syntax
Public Property CurrentConfiguration As Configuration
Dim instance As ConfigReaderWriter
Dim value As Configuration
 
instance.CurrentConfiguration = value
 
value = instance.CurrentConfiguration
public Configuration CurrentConfiguration {get; set;}
public:
property Configuration^ CurrentConfiguration {
   Configuration^ get();
   void set (    Configuration^ value);
}
Example
//Trial Mode
ConfigReaderWriter config = new ConfigReaderWriter();
 
//License Mode
//ConfigReaderWriter config = new ConfigReaderWriter("John Smith 10000", "psdfljksfdl==");
 
Console.WriteLine(config.CurrentConfiguration.HasFile);
'Trial Mode
Dim config As New ConfigReaderWriter()
 
'License Mode
'Dim config As New ConfigReaderWriter("John Smith 10000", "psdfljksfdl==")
 
Console.WriteLine(config.CurrentConfiguration.HasFile)
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

ConfigReaderWriter Class
ConfigReaderWriter Members