CmdletProvider.WriteDebug Method (String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Writes a debug message to the host application.

Namespace:   System.Management.Automation.Provider
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

public void WriteDebug(
	string text
)

Parameters

text
Type: System.String

The debug message to be written to the host.

Exception Condition
PipelineStoppedException

Thrown when the pipeline is stopped. The pipeline was terminated either before the call was made or while the call was in progress. In general, the provider should allow the caller to catch this exception.

This method provides a way for provider developers to write debug information while troubleshooting their providers.

For more information about providers, see Windows PowerShell Providers [ps].

Return to top

Community Additions

ADD
Show: