Table of Contents

Method Create

Namespace
MailFathom.Application.SensitiveContent
Assembly
MailFathom.Application.dll

Create(SensitiveContentCategory, string)

Creates a rule from a declared or configured name inside a category.

public static SensitiveContentRule Create(SensitiveContentCategory category, string name)

Parameters

category SensitiveContentCategory

The category the rule belongs to.

name string

The rule name to validate.

Returns

SensitiveContentRule

The validated rule.

Exceptions

ArgumentNullException

Thrown when category is null.

ArgumentException

Thrown when name is not an acceptable rule name.