Method Create
- Namespace
- MailFathom.Application.SensitiveContent.Detection
- Assembly
- MailFathom.Application.dll
Create(SensitiveContentRule, SensitiveContentSpan, double, SensitiveContentDetector, DateTimeOffset)
Creates a finding.
public static SensitiveContentFinding Create(SensitiveContentRule rule, SensitiveContentSpan span, double confidence, SensitiveContentDetector detector, DateTimeOffset detectedAt)
Parameters
ruleSensitiveContentRuleThe corpus entry that matched, which carries the category it belongs to.
spanSensitiveContentSpanThe region of the analyzed text it covers.
confidencedoubleHow sure the detector was, from 0 to 1 inclusive.
detectorSensitiveContentDetectorWhat produced the finding, with its corpus or profile revision.
detectedAtDateTimeOffsetWhen the scan evaluated the text.
Returns
- SensitiveContentFinding
The validated finding.
Exceptions
- ArgumentNullException
Thrown when
ruleordetectoris null.- ArgumentOutOfRangeException
Thrown when
confidenceis outside 0 to 1, orspandescribes no region.