CommandTaskStateEventArg.ErrorMessage 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.
Retrieves the error message associated with the error that occurred while running the command.
public string ErrorMessage { get; }member this.ErrorMessage : stringPublic ReadOnly Property ErrorMessage As StringProperty Value
The error message.