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.

ErrorDetails.Message Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets the message that replaces the original exception message.

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

public string Message { get; }

Property Value

Type: System.String

The message that replaces the Message message of the original exception.

When both this property and the Exception property contain non-empty values, the host will display the message described here. This revised message should be a grammatically correct localized text string.

For more information about error records, see Windows PowerShell Error Records.

Return to top

Community Additions

Show: