PSTraceSourceOptions Enumeration
Defines the types of tracing that are enabled. For example, tracing can be enabled to trace methods, properties, errors, and more.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
| Member name | Description |
|---|---|
| All | All tracing is enabled. |
| Assert | Asserts are traced. |
| Constructor | Constructors are traced. |
| Data | A combination of data is traced. This option includes the following other options: Constructor, Dispose, Finalizer, Property, Verbose, and WriteLine. |
| Delegates | Delegates are traced. |
| Dispose | Dispose is traced. |
| Error | A single error is traced. |
| Errors | Multiple errors are traced. This option is a combination of other options, including Error and Exception. |
| Events | Events are traced. |
| Exception | Exceptions are traced. |
| ExecutionFlow | Execution flow is traced. This option includes the following other options: Constructor, Delegates, Dispose, Events, Finalizer, Method, and Scope. |
| Finalizer | Finalize is traced. |
| Lock | Locks are traced. |
| Method | Methods are traced. |
| None | All tracing is off. |
| Property | Properties are traced. |
| Scope | A scope is traced. |
| Verbose | Verbose messages are traced. |
| Warning | Warnings are traced. |
| WriteLine | WriteLine is traced. |
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.
