DelimitedListTraceListener.Delimiter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 null
.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.