Partager via


PowerShellTraceSource Class

Definition

TraceSource class gives access to the actual TraceWriter channels. Three channels are pre-defined 1) Debug 2) Analytic and 3) Operations This class also has strongly types methods that are used for easy tracing.

public ref class PowerShellTraceSource sealed : IDisposable
public sealed class PowerShellTraceSource : IDisposable
type PowerShellTraceSource = class
    interface IDisposable
Public NotInheritable Class PowerShellTraceSource
Implements IDisposable
Inheritance
PowerShellTraceSource
Implements

Properties

AnalyticChannel

Gives access to analytical channel writer

DebugChannel

Gives access to Debug channel writer

Keywords

Keywords that were set through constructor when object was instantiated

OperationalChannel

Gives access to operational channel writer

Task

Task that was set through constructor

Methods

Dispose()

Dispose method.

TraceErrorRecord(ErrorRecord)

TraceErrorRecord

TraceException(Exception)

TraceException.

TraceJob(Job)

TraceJob

TracePowerShellObject(PSObject)

TracePowerShellObject

TraceWSManConnectionInfo(WSManConnectionInfo)
WriteISEDebuggerStepIntoEvent(Object[])

Writes operational ISE debugger step into message.

WriteISEDebuggerStepOutEvent(Object[])

Writes operational ISE debugger step out message.

WriteISEDebuggerStepOverEvent(Object[])

Writes operational ISE debugger step over message.

WriteISEDisableAllBreakpointsEvent(Object[])

Writes operational ISE disable all breakpoints message.

WriteISEDisableBreakpointEvent(Object[])

Writes operational ISE disable breakpoint message.

WriteISEEnableAllBreakpointsEvent(Object[])

Writes operational ISE enable all breakpoints message.

WriteISEEnableBreakpointEvent(Object[])

Writes operational ISE enable breakpoint message.

WriteISEExecuteScriptEvent(Object[])

Writes operational ISE execute script message.

WriteISEExecuteSelectionEvent(Object[])

Writes operational ISE execute selection message.

WriteISEHitBreakpointEvent(Object[])

Writes operational ISE hit breakpoint message.

WriteISERemoveAllBreakpointsEvent(Object[])

Writes operational ISE remove all breakpoints message.

WriteISERemoveBreakpointEvent(Object[])

Writes operational ISE remove breakpoint message.

WriteISEResumeDebuggerEvent(Object[])

Writes operational ISE resume debugger message.

WriteISESetBreakpointEvent(Object[])

Writes operational ISE set breakpoint message.

WriteISEStopCommandEvent(Object[])

Writes operational ISE stop command message.

WriteISEStopDebuggerEvent(Object[])

Writes operational ISE stop debugger message.

WriteMessage(String, Guid)
WriteMessage(String, String, Guid, Job, String, String[])
WriteMessage(String, String, Guid, String, Guid, String, String[])
WriteMessage(String, String, Guid, String, String[])
WriteMessage(String, String)
WriteMessage(String)
WriteScheduledJobCompleteEvent(Object[])

Writes operational scheduled job completed message.

WriteScheduledJobErrorEvent(Object[])

Writes operational scheduled job error message.

WriteScheduledJobStartEvent(Object[])

Writes operational scheduled job start message.

Applies to