Method Create
- Namespace
- MailFathom.Application.SensitiveContent.Detection
- Assembly
- MailFathom.Application.dll
Create(int, int)
Creates a span over a region of the analyzed text.
public static SensitiveContentSpan Create(int start, int length)
Parameters
startintThe offset of the first character the finding covers.
lengthintThe number of characters the finding covers.
Returns
- SensitiveContentSpan
The validated span.
Remarks
A zero-length span is refused rather than accepted as an empty match, because redaction would replace nothing with a placeholder and the text a reader sees would gain a marker naming a value that was never there.
Exceptions
- ArgumentOutOfRangeException
Thrown when the offset is negative or the length is not positive.