Partager via


PSTraceSourceOptions Enum

Definition

These flags enable tracing based on the types of a tracing supplied. Each type of tracing will allow for one or more methods in the StructuredTraceSource class to become "enabled".

This enumeration supports a bitwise combination of its member values.

public enum class PSTraceSourceOptions
[System.Flags]
public enum PSTraceSourceOptions
[<System.Flags>]
type PSTraceSourceOptions = 
Public Enum PSTraceSourceOptions
Inheritance
PSTraceSourceOptions
Attributes

Fields

Name Value Description
None 0

All tracing off.

Constructor 1

Constructors will be traced.

Dispose 2

Dispose will be traced.

Finalizer 4

Finalize will be traced.

Method 8

Methods will be traced.

Property 16

Properties will be traced.

Delegates 32

Delegates will be traced.

Events 64

Events will be traced.

Exception 128

Exceptions will be traced.

Lock 256

Locks will be traced.

Error 512

Errors will be traced.

Errors 640

A combination of flags that trace the errors. The methods associated with the flags; Error, and Exception will be enabled.

Warning 1024

Warnings will be traced.

Verbose 2048

Verbose messages will be traced.

WriteLine 4096

WriteLines will be traced.

Data 6167

A combination of flags that trace the data. The methods associated with the flags; Constructor, Dispose, Finalizer, Property, and WriteLine will be enabled.

Scope 8192

TraceScope calls will be traced.

ExecutionFlow 8303

A combination of flags that trace the execution flow. The methods associated with the flags; Constructor, Dispose, Finalizer, Method, Delegates, and Events will be enabled.

Assert 16384

Assertions will be traced.

All 32767

All combination of trace flags will be set. All methods for tracing will be enabled.

Applies to