Contains detailed information about why a result was canceled.
public const CancellationReason & Reason;
The reason the result was canceled.
public const CancellationErrorCode & ErrorCode;
The error code in case of an unsuccessful recognition (Reason is set to Error). If Reason is not Error, ErrorCode is set to NoError. Added in version 1.1.0.
public const std::string ErrorDetails;
The error message in case of an unsuccessful recognition (Reason is set to Error).
public inline static std::shared_ptr< CancellationDetails > FromResult ( std::shared_ptr< RecognitionResult > result );
Creates an instance of CancellationDetails object for the canceled RecognitionResult.
resultThe result that was canceled.
A shared pointer to CancellationDetails.