Megosztás a következőn keresztül:


PowerShellTraceSourceFactory Class

Definition

TraceSourceFactory will return an instance of TraceSource every time GetTraceSource method is called.

public ref class PowerShellTraceSourceFactory abstract sealed
public static class PowerShellTraceSourceFactory
type PowerShellTraceSourceFactory = class
Public Class PowerShellTraceSourceFactory
Inheritance
PowerShellTraceSourceFactory

Methods

GetTraceSource()

Returns an instance of BaseChannelWriter. If the Etw is not supported by the platform it will return NullWriter.Instance

A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads). The supplied task and keywords are used to pass to the Etw provider in case they are not defined in the manifest file.

GetTraceSource(PowerShellTraceTask)

Returns an instance of BaseChannelWriter. If the Etw is not supported by the platform it will return NullWriter.Instance

A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads). The supplied task and keywords are used to pass to the Etw provider in case they are not defined in the manifest file.

GetTraceSource(PowerShellTraceTask, PowerShellTraceKeywords)

Returns an instance of BaseChannelWriter. If the Etw is not supported by the platform it will return NullWriter.Instance

A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads). The supplied task and keywords are used to pass to the Etw provider in case they are not defined in the manifest file.

Applies to