Table of Contents

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

category SensitiveContentCategory

The category being declared.

detectedByDefault bool

Whether it is looked for when a deployment names no categories.

rules IReadOnlyList<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.