Config Helper
FilePath Property
Example 



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