Table of Contents

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

true when Status is Valid or Repaired; false when Status is Invalid; true when 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}'");
    }
}
Share