EventSchemaTraceListener.TraceLogRetentionOption Property

Definition

Gets the trace log retention option for the file.

C#
public System.Diagnostics.TraceLogRetentionOption TraceLogRetentionOption { get; }

Property Value

One of the TraceLogRetentionOption values. The default is SingleFileUnboundedSize.

Examples

The following code example demonstrates how to display the value of the TraceLogRetentionOption property. This code example is part of a larger example that is provided for the EventSchemaTraceListener class.

C#
Console.WriteLine("TraceLogRetentionOption =  " + ((EventSchemaTraceListener)ts.Listeners["eventListener"]).TraceLogRetentionOption);

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1