Partilhar via


ErrorDetails.Message Property

Definition

Message which replaces Message in Exception

public:
 property System::String ^ Message { System::String ^ get(); };
public:
 property Platform::String ^ Message { Platform::String ^ get(); };
public string Message { get; }
member this.Message : string
Public ReadOnly Property Message As String

Property Value

Remarks

When an instance of ErrorRecord contains a non-null ErrorDetails and Message is non-empty, the default host will display it instead of the Message in Exception.

This should be a grammatically correct localized text string, as with Message

Applies to