Method For
- Namespace
- MailFathom.Application.SensitiveContent.Redaction
- Assembly
- MailFathom.Application.dll
For(SensitiveContentCategory)
Produces the placeholder that replaces a region of one category.
public static string For(SensitiveContentCategory category)
Parameters
categorySensitiveContentCategoryThe kind of material that stood there.
Returns
- string
The replacement text.
Remarks
The category's own grammar admits no bracket, no whitespace, and no newline, so the result cannot be made to close early or to span a line by anything a rule corpus declares.
Exceptions
- ArgumentNullException
Thrown when
categoryis null.
For(SensitiveContentFinding)
Produces the placeholder that replaces the region a finding covers.
public static string For(SensitiveContentFinding finding)
Parameters
findingSensitiveContentFindingThe finding being redacted.
Returns
- string
The replacement text.
Exceptions
- ArgumentNullException
Thrown when
findingis null.