WriteOrThrowErrorCommand.Message Property

Definition

If Exception is specified, this is ErrorRecord.ErrorDetails.Message; otherwise, the Exception is System.Exception, and this is Exception.Message.

public:
 property System::String ^ Message { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ Message { Platform::String ^ get(); void set(Platform::String ^ value); };
public string Message { get; set; }
[System.Management.Automation.Alias(new System.String[] { "Msg" })]
[System.Management.Automation.AllowEmptyString]
[System.Management.Automation.AllowNull]
[System.Management.Automation.Parameter(ParameterSetName="WithException")]
[System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="NoException", Position=0, ValueFromPipeline=true)]
public string Message { get; set; }
member this.Message : string with get, set
[<System.Management.Automation.Alias(new System.String[] { "Msg" })>]
[<System.Management.Automation.AllowEmptyString>]
[<System.Management.Automation.AllowNull>]
[<System.Management.Automation.Parameter(ParameterSetName="WithException")>]
[<System.Management.Automation.Parameter(Mandatory=true, ParameterSetName="NoException", Position=0, ValueFromPipeline=true)>]
member this.Message : string with get, set
Public Property Message As String

Property Value

Attributes

Applies to