Редагувати

Поділитися через


DelimitedListTraceListener.Delimiter Property

Definition

Gets or sets the delimiter for the delimited list.

public:
 property System::String ^ Delimiter { System::String ^ get(); void set(System::String ^ value); };
public string Delimiter { get; set; }
member this.Delimiter : string with get, set
Public Property Delimiter As String

Property Value

The delimiter for the delimited list.

Exceptions

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

Remarks

The default delimiter is ";" (semicolon).

The following configuration file example shows how to set the Delimiter property using the delimiter attribute in a configuration file for a .NET Framework app:

<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>  

Applies to