Property IsValid
- Namespace
- LMKit.Extraction
- Assembly
- LM-Kit.NET.dll
IsValid
Gets a value indicating whether the extracted value is considered structurally valid for its entity kind.
public bool IsValid { get; }
Property Value
- bool
truewhen Status is Valid or Repaired;falsewhen Status is Invalid;truewhen Status is NotApplicable (no validator exists, so the value is assumed valid).
Examples
foreach (var el in result.Elements)
{
if (!el.Validation.IsValid)
{
Console.WriteLine($"{el.TextExtractionElement.Name}: invalid value '{el.Value}'");
}
}