Table of Contents

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

rule SensitiveContentRule

The corpus entry that matched, which carries the category it belongs to.

span SensitiveContentSpan

The region of the analyzed text it covers.

confidence double

How sure the detector was, from 0 to 1 inclusive.

detector SensitiveContentDetector

What produced the finding, with its corpus or profile revision.

detectedAt DateTimeOffset

When the scan evaluated the text.

Returns

SensitiveContentFinding

The validated finding.

Exceptions

ArgumentNullException

Thrown when rule or detector is null.

ArgumentOutOfRangeException

Thrown when confidence is outside 0 to 1, or span describes no region.