PSInvocationStateInfo.Reason Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.