Class ChdHashComputeResult
Result of a ComputeHashesWithReporting(string, ChdHashType, string?, bool, IProgress<ChdProgress>?, CancellationToken) operation, consolidating error code and hash results.
public sealed record ChdHashComputeResult : IEquatable<ChdHashComputeResult>
- Inheritance
-
ChdHashComputeResult
- Implements
- Inherited Members
Constructors
ChdHashComputeResult(ChdError, IReadOnlyList<ChdHashResult>)
Creates a new ChdHashComputeResult with the given error and results.
public ChdHashComputeResult(ChdError error, IReadOnlyList<ChdHashResult> results)
Parameters
errorChdErrorresultsIReadOnlyList<ChdHashResult>
Properties
Error
The error code indicating success or failure of the operation.
public ChdError Error { get; }
Property Value
IsSuccess
true if the operation completed successfully (Error is
Chderrnone).
public bool IsSuccess { get; }
Property Value
Results
Computed hash results, one per region (track or whole image). Empty on error.
public IReadOnlyList<ChdHashResult> Results { get; }