Visual Basic (Declaration) | |
---|---|
<DescriptionAttribute("Path and file name where log file should be written. If no path is provided the file will be written to the executable's directory ")> <XmlAttributeAttribute("logFile")> Public Property LogFile As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As LoggingElement Dim value As String instance.LogFile = value value = instance.LogFile |
C# | |
---|---|
[DescriptionAttribute("Path and file name where log file should be written. If no path is provided the file will be written to the executable's directory ")] [XmlAttributeAttribute("logFile")] public string LogFile {get; set;} |
C++/CLI | |
---|---|
[DescriptionAttribute("Path and file name where log file should be written. If no path is provided the file will be written to the executable's directory ")] [XmlAttributeAttribute("logFile")] public: property String^ LogFile { String^ get(); void set ( String^ value); } |
If no path is provided the file will be written to the executable's directory, or if running under IIS the directory containing the web.config file. Relative paths are also supported. You can turn off creation of the log file altogether by setting the property value to an empty string.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family