Windows Dev Center

ErrorDetails.Message Property

Gets the message that replaces the original exception message.

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

Dim instance As ErrorDetails
Dim value As String

value = instance.Message

public string Message { get; }
/** @property */
public String get_Message ()

public function get Message () : String

Property Value

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft