Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Diagnostics
  3. TraceSource
  4. DefaultLevel
  • TraceSource
    • TraceSource(String)
    • TraceSource(String, SourceLevels)
    • Attributes
    • DefaultLevel
    • Listeners
    • Name
    • Switch
    • Close()
    • Flush()
    • GetSupportedAttributes()
    • TraceData(TraceEventType, Int32, Object)
    • TraceData(TraceEventType, Int32, Object[])
    • TraceEvent(TraceEventType, Int32)
    • TraceEvent(TraceEventType, Int32, String)
    • TraceEvent(TraceEventType, Int32, String, Object[])
    • TraceInformation(String)
    • TraceInformation(String, Object[])
    • TraceTransfer(Int32, String, Guid)
    • Initializing
    • TraceError(TraceSource, String)
    • TraceError(TraceSource, String, Object[])
    • TraceVerbose(TraceSource, String)
    • TraceVerbose(TraceSource, String, Object[])
    • TraceWarning(TraceSource, String)
    • TraceWarning(TraceSource, String, Object[])
net9.0
namespace System.Diagnostics
{
    public class TraceSource
    {
        public SourceLevels DefaultLevel { get; }
    }
}
nuget.org
0.1 %
Reference this API
Design Reviews
  • dotnet/runtime#72967 4 years ago (Approved)
.NET
7.08.09.0
Information specific to net9.0
Assembly

System.Diagnostics.TraceSource , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

The property getter is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

10/15/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙