Bewerken

Share via


EventSchemaTraceListener.TraceLogRetentionOption Property

Definition

Gets the trace log retention option for the file.

public:
 property System::Diagnostics::TraceLogRetentionOption TraceLogRetentionOption { System::Diagnostics::TraceLogRetentionOption get(); };
public System.Diagnostics.TraceLogRetentionOption TraceLogRetentionOption { get; }
member this.TraceLogRetentionOption : System.Diagnostics.TraceLogRetentionOption
Public ReadOnly Property TraceLogRetentionOption As TraceLogRetentionOption

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.

Console.WriteLine("TraceLogRetentionOption =  " + ((EventSchemaTraceListener)ts.Listeners["eventListener"]).TraceLogRetentionOption);
Console.WriteLine("TraceLogRetentionOption =  " + CType(ts.Listeners("eventListener"), EventSchemaTraceListener).TraceLogRetentionOption.ToString())

Applies to