DelimitedListTraceListener.GetSupportedAttributes Method
.NET Framework 2.0
Note: This method is new in the .NET Framework version 2.0.
Returns the custom configuration file attribute supported by the delimited trace listener.
Namespace: System.Diagnostics
Assembly: System (in system.dll)
Assembly: System (in system.dll)
A custom attribute is an attribute that is not inherited from the base class that can be used to set a property for the class. The custom attribute for DelimitedListTraceListener is used to set the Delimiter property. The following configuration file example shows the use of the delimiter attribute to set the Delimiter property:
<configuration>
<system.diagnostics>
<trace autoflush="false" indentsize="4">
<listeners>
<add name="delimitedListener"
type="System.Diagnostics.DelimitedListTraceListener"
delimiter=":"
initializeData="delimitedOutput.txt"
traceOutputOptions="ProcessId, DateTime" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
</configuration>
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.