Share via


RunspaceStateInfo.Reason Property

Definition

The reason for the state change, if caused by an error.

public:
 property Exception ^ Reason { Exception ^ get(); };
public Exception Reason { get; }
member this.Reason : Exception
Public ReadOnly Property Reason As Exception

Property Value

Remarks

The value of this property is non-null if the state changed due to an error. Otherwise, the value of this property is null.

Applies to