Class ValidationResult
- Namespace
- Wolfgang.Etl.FixedWidth
- Assembly
- Wolfgang.Etl.FixedWidth.dll
The result returned by a RecordValidator delegate: the ValidationAction to take for a parsed record and an optional human-readable reason (surfaced in debug logs).
public sealed class ValidationResult
- Inheritance
-
ValidationResult
- Inherited Members
Properties
Action
The action the extractor should take for the record.
public ValidationAction Action { get; }
Property Value
Reason
An optional reason describing why the record was skipped or extraction was stopped. null when not supplied.
public string? Reason { get; }
Property Value
Methods
Accept()
Accept the record and yield it.
public static ValidationResult Accept()
Returns
Skip(string?)
Skip the record, optionally recording reason in the
debug log.
public static ValidationResult Skip(string? reason = null)
Parameters
reasonstringAn optional reason the record was skipped.
Returns
Stop(string?)
Stop extraction, optionally recording reason in the
debug log.
public static ValidationResult Stop(string? reason = null)
Parameters
reasonstringAn optional reason extraction was stopped.