共用方式為


ScriptExecution.FailureReason 屬性

定義

如果腳本能夠執行,取得或設定錯誤訊息,但如果腳本本身發生錯誤或 Powershell 擲回例外狀況

[Newtonsoft.Json.JsonProperty(PropertyName="properties.failureReason")]
public string FailureReason { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="properties.failureReason")>]
member this.FailureReason : string with get, set
Public Property FailureReason As String

屬性值

屬性
Newtonsoft.Json.JsonPropertyAttribute

適用於