DelimitedListTraceListener.Delimiter Property

Gets or sets the delimiter for the delimited list.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

public string Delimiter { get; set; }
/** @property */
public String get_Delimiter ()

/** @property */
public void set_Delimiter (String value)

public function get Delimiter () : String

public function set Delimiter (value : String)

Not applicable.

Property Value

The delimiter for the delimited list.

Exception typeCondition

ArgumentNullException

Delimiter is set to a null reference (Nothing in Visual Basic).

ArgumentException

Delimiter is set to an empty string ("").

The default delimiter is ";" (semicolon). The following configuration file example shows the setting of the Delimiter property using the delimiter attribute in a configuration file:

<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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: