EventSchemaTraceListener.TraceLogRetentionOption 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 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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.