Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSHostUserInterface.WriteDebugLine Method (String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

When overridden in a derived class, displays a debug message to the user.

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

public abstract void WriteDebugLine(
	string message
)

Parameters

message
Type: System.String

Debug message to be displayed.

Exception Condition
HostException

The host can throw this exception when it cannot complete an operation.

NotImplementedException

If this method is not implemented, the host should throw a "not implemented" exception when it receives this call.

RuntimeException

The host can throw this exception when an error occurs while a command is running.

This method is invoked by a cmdlet call to the WriteDebug method.

Return to top

Community Additions

Show: