EventSchemaTraceListener.TraceLogRetentionOption Property
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 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
One of the TraceLogRetentionOption values. The default is SingleFileUnboundedSize.
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())
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: