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.WriteWarningLine Method (String)

 

Updated: April 27, 2016

Applies To: Windows PowerShell

When overridden in a derived class, writes a warning line to be displayed to the user.

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

public abstract void WriteWarningLine(
	string message
)

Parameters

message
Type: System.String

The warning 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 WriteWarning method.

Return to top

Community Additions

Show: