NET Logging Library
ConfigurationXml Property (ConcreteLog)
Example 



KellermanSoftware.NetLoggingLibrary Namespace > ConcreteLog Class : ConfigurationXml Property
Get/Set the configuration as serialized XML
Syntax
Public Property ConfigurationXml As String
Dim instance As ConcreteLog
Dim value As String
 
instance.ConfigurationXml = value
 
value = instance.ConfigurationXml
public string ConfigurationXml {get; set;}
public:
property String^ ConfigurationXml {
   String^ get();
   void set (    String^ value);
}
Example
ConcreteLog logger = new ConcreteLog();
 
//Licensed Mode
//logger.UserName = "User Name From Receipt";
//logger.LicenseKey = "LicenseKey From Receipt";  
 
XmlDocument document = new XmlDocument();
document.LoadXml(logger.ConfigurationXml);
document.Save("configuration.xml");            
 
document.Load("configuration.xml");
            
logger.ConfigurationXml = document.OuterXml;
Console.WriteLine(logger.ConfigurationXml);
Dim logger As New ConcreteLog()
 
'Licensed Mode
'logger.UserName = "User Name From Receipt";
'logger.LicenseKey = "LicenseKey From Receipt";  
 
Dim document As New XmlDocument()
document.LoadXml(logger.ConfigurationXml)
document.Save("configuration.xml")
 
document.Load("configuration.xml")
 
logger.ConfigurationXml = document.OuterXml
Console.WriteLine(logger.ConfigurationXml)
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

ConcreteLog Class
ConcreteLog Members