System.Diagnostics namespaces

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 the .NET for Windows Store apps. Note that the .NET for Windows Store 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 the .NET for Windows Store apps.

System.Diagnostics namespace

Types supported in the .NET for Windows Store apps

Description

ConditionalAttribute

Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined.

Debug

Provides a set of methods and properties that help debug your code. This class cannot be inherited.

DebuggableAttribute

Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited.

DebuggableAttribute.DebuggingModes

Specifies the debugging mode for the just-in-time (JIT) compiler.

Debugger

Enables communication with a debugger. This class cannot be inherited.

DebuggerBrowsableAttribute

Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited.

DebuggerBrowsableState

Provides display instructions for the debugger.

DebuggerDisplayAttribute

Determines how a class or field is displayed in the debugger variable windows.

DebuggerHiddenAttribute

Specifies the DebuggerHiddenAttribute. This class cannot be inherited.

DebuggerNonUserCodeAttribute

Identifies a type or member that is not part of the user code for an application.

DebuggerStepThroughAttribute

Instructs the debugger to step through the code instead of stepping into the code. This class cannot be inherited.

DebuggerTypeProxyAttribute

Specifies the display proxy for a type.

Stopwatch

Provides a set of methods and properties that you can use to accurately measure elapsed time.

System.Diagnostics.CodeAnalysis namespace

Types supported in the .NET for Windows Store apps

Description

SuppressMessageAttribute

Suppresses reporting of a specific static analysis tool rule violation, allowing multiple suppressions on a single code artifact.

System.Diagnostics.Contracts namespace

Types supported in the .NET for Windows Store apps

Description

Contract

Contains static methods for representing program contracts such as preconditions, postconditions, and object invariants.

ContractAbbreviatorAttribute

Enables defining abbreviations for contracts which can be used in place of the full contract syntax.

ContractArgumentValidatorAttribute

Enables factoring legacy if-then-throw code into separate methods for reuse and full control over thrown exceptions and arguments.

ContractClassAttribute

Specifies that a separate type contains the code contracts for this type.

ContractClassForAttribute

Specifies that a class is a contract for a type.

ContractFailedEventArgs

Provides methods and data for the ContractFailed event.

ContractFailureKind

Specifies the type of contract that failed.

ContractInvariantMethodAttribute

Marks a method as being the invariant method for a class.

ContractOptionAttribute

Allows setting contract and tool options at assembly, type, or method granularity.

ContractPublicPropertyNameAttribute

Specifies that a field can be used in method contracts when the field has less visibility than the method.

ContractReferenceAssemblyAttribute

Specifies that an assembly is a reference assembly that contains contracts.

ContractRuntimeIgnoredAttribute

Identifies a member that has no run-time behavior.

ContractVerificationAttribute

Instructs analysis tools to assume the correctness of an assembly, type, or member without performing static verification.

PureAttribute

Indicates that a type or method is pure, that is, it does not make any visible state changes.

System.Diagnostics.Tracing namespace

Types supported in the .NET for Windows Store apps

Description

EventAttribute

Enables you to specify additional event schema information for an event.

EventCommand

Describes the command passed to the OnEventCommand callback.

EventCommandEventArgs

Provides the arguments for the OnEventCommand callback.

EventKeywords

Defines the standard keywords that apply to events.

EventLevel

Identifies the level of an event.

EventListener

Provides methods for enabling and disabling events from event sources.

EventOpcode

Defines the standard opcodes that are attached to events by the event source.

EventSource

Provides the ability to create events for event tracing.

EventSource.EventData

Provides the event data for creating fast WriteEvent overloads using the WriteEventCore method.

EventSourceAttribute

Allows the event tracing for Windows (ETW) name to be defined independently of the name of the event source class.

EventSourceException

The exception that is thrown when an error occurs during event tracing for Windows (ETW).

EventTask

Defines the tasks that apply to events.

EventWrittenEventArgs

Provides data for the OnEventWritten callback.

NonEventAttribute

Identifies a method not generating an event.

See Also

Concepts

.NET for Windows Store apps - supported APIs