PowerShellTraceSourceFactory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, 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. |
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. |