This topic has not yet been rated - Rate this topic

DelimitedListTraceListener.GetSupportedAttributes Method

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)

protected internal override string[] GetSupportedAttributes ()
protected String[] GetSupportedAttributes ()
protected internal override function GetSupportedAttributes () : String[]

Return Value

A string array that contains the single value "delimiter".

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.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.