Method Create
- Namespace
- MailFathom.Application.SensitiveContent.Detection
- Assembly
- MailFathom.Application.dll
Create(SensitiveContentCategory, bool, IReadOnlyList<SensitiveContentRule>)
Declares a category.
public static SensitiveContentCategoryDefinition Create(SensitiveContentCategory category, bool detectedByDefault, IReadOnlyList<SensitiveContentRule> rules)
Parameters
categorySensitiveContentCategoryThe category being declared.
detectedByDefaultboolWhether it is looked for when a deployment names no categories.
rulesIReadOnlyList<SensitiveContentRule>Every rule inside the category.
Returns
- SensitiveContentCategoryDefinition
The validated declaration.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- ArgumentException
Thrown when the rules are empty, name the same rule twice, or belong to another category.