PowerShellTraceSourceFactory.GetTraceSource Method
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.
Overloads
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. |
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.
public:
static System::Management::Automation::Tracing::PowerShellTraceSource ^ GetTraceSource();
public static System.Management.Automation.Tracing.PowerShellTraceSource GetTraceSource ();
static member GetTraceSource : unit -> System.Management.Automation.Tracing.PowerShellTraceSource
Public Shared Function GetTraceSource () As PowerShellTraceSource
Returns
Applies to
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.
public:
static System::Management::Automation::Tracing::PowerShellTraceSource ^ GetTraceSource(System::Management::Automation::Tracing::PowerShellTraceTask task);
public static System.Management.Automation.Tracing.PowerShellTraceSource GetTraceSource (System.Management.Automation.Tracing.PowerShellTraceTask task);
static member GetTraceSource : System.Management.Automation.Tracing.PowerShellTraceTask -> System.Management.Automation.Tracing.PowerShellTraceSource
Public Shared Function GetTraceSource (task As PowerShellTraceTask) As PowerShellTraceSource
Parameters
- task
- PowerShellTraceTask
Returns
Applies to
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.
public:
static System::Management::Automation::Tracing::PowerShellTraceSource ^ GetTraceSource(System::Management::Automation::Tracing::PowerShellTraceTask task, System::Management::Automation::Tracing::PowerShellTraceKeywords keywords);
public static System.Management.Automation.Tracing.PowerShellTraceSource GetTraceSource (System.Management.Automation.Tracing.PowerShellTraceTask task, System.Management.Automation.Tracing.PowerShellTraceKeywords keywords);
static member GetTraceSource : System.Management.Automation.Tracing.PowerShellTraceTask * System.Management.Automation.Tracing.PowerShellTraceKeywords -> System.Management.Automation.Tracing.PowerShellTraceSource
Public Shared Function GetTraceSource (task As PowerShellTraceTask, keywords As PowerShellTraceKeywords) As PowerShellTraceSource
Parameters
- task
- PowerShellTraceTask
- keywords
- PowerShellTraceKeywords