System.Diagnostics namespaces for UWP apps
System.Diagnostics and its child namespaces (System.Diagnostics.CodeAnalysis, System.Diagnostics.Contracts, and System.Diagnostics.Tracing) contain types that enable you to interact with system processes, event logs, and performance counters.
This topic displays the types in the System.Diagnostics namespaces that are included in .NET for UWP apps. Note that .NET for UWP apps does not include all the members of each type. For information about individual types, see the linked topics. The documentation for a type indicates which members are included in .NET for UWP apps.
Types supported in .NET for UWP apps | Description |
|---|---|
Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined. | |
Provides a set of methods and properties that help debug your code. This class cannot be inherited. | |
Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited. | |
Specifies the debugging mode for the just-in-time (JIT) compiler. | |
Enables communication with a debugger. This class cannot be inherited. | |
Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited. | |
Provides display instructions for the debugger. | |
Determines how a class or field is displayed in the debugger variable windows. | |
Specifies the DebuggerHiddenAttribute. This class cannot be inherited. | |
Identifies a type or member that is not part of the user code for an application. | |
Instructs the debugger to step through the code instead of stepping into the code. This class cannot be inherited. | |
Specifies the display proxy for a type. | |
Provides information about a StackFrame; which represents a function call on the call stack for the current thread. | |
T:System.Diagnostics.StackFrameExtensions | Extensions to StackFrame. |
Represents a stack trace; which is an ordered collection of one or more stack frames. | |
Provides a set of methods and properties that you can use to accurately measure elapsed time. |
Types supported in the .NET for UWP apps | Description |
|---|---|
Suppresses reporting of a specific static analysis tool rule violation, allowing multiple suppressions on a single code artifact. |
Types supported in the .NET for UWP apps | Description |
|---|---|
Contains static methods for representing program contracts such as preconditions, postconditions, and object invariants. | |
Enables defining abbreviations for contracts which can be used in place of the full contract syntax. | |
Enables factoring legacy if-then-throw code into separate methods for reuse and full control over thrown exceptions and arguments. | |
Specifies that a separate type contains the code contracts for this type. | |
Specifies that a class is a contract for a type. | |
Provides methods and data for the ContractFailed event. | |
Specifies the type of contract that failed. | |
Marks a method as being the invariant method for a class. | |
Allows setting contract and tool options at assembly, type, or method granularity. | |
Specifies that a field can be used in method contracts when the field has less visibility than the method. | |
Specifies that an assembly is a reference assembly that contains contracts. | |
Identifies a member that has no run-time behavior. | |
Instructs analysis tools to assume the correctness of an assembly, type, or member without performing static verification. | |
Indicates that a type or method is pure, that is, it does not make any visible state changes. |
Types supported in the .NET for UWP apps | Description |
|---|---|
Specifies the tracking of activity start and stop events. | |
Enables you to specify additional event schema information for an event. | |
Specifies the event log channel for the event. | |
Describes the command passed to the OnEventCommand callback. | |
Provides the arguments for the OnEventCommand callback. | |
Specifies a type to be passed to the Write method. | |
The EventFieldAttribute is placed on fields of user-defined types that are passed as EventSource payloads. | |
Specifies how to format the value of a user-defined type and can be used to override the default formatting for a field. | |
Specifies the user-defined tag that is placed on fields of user-defined types that are passed as EventSource payloads through the EventFieldAttribute. | |
Specifies a property should be ignored when writing an event type with the Write method. | |
Defines the standard keywords that apply to events. | |
Identifies the level of an event. | |
Provides methods for enabling and disabling events from event sources. | |
Specifies how the ETW manifest for the event source is generated. | |
Defines the standard opcodes that are attached to events by the event source. | |
Provides the ability to create events for event tracing. | |
Provides the event data for creating fast WriteEvent overloads using the WriteEventCore method. | |
Allows the event tracing for Windows (ETW) name to be defined independently of the name of the event source class. | |
The exception that is thrown when an error occurs during event tracing for Windows (ETW). | |
Specifies overrides of default event settings such as the log level; keywords and operation code when the Write method is called. | |
Specifies configuration options for an event source. | |
Specifies the tracking of activity start and stop events. You should only use the lower 24 bits. For more information; see EventSourceOptions and Write. | |
Defines the tasks that apply to events. | |
Provides data for the OnEventWritten callback. | |
Identifies a method not generating an event. |