RedactionPolicy class

RedactionPolicy class

Represents a sanitization policy, containing a set of specific redactions to apply.

The RedactionPolicy type exposes the following members:

Constructors

Constructor Description
init Creates a new instance of Redaction policy.
init Creates a new instance of Redaction policy with a specific list of redactions.

Properties

Property Description
redactions Gets an array of fully configured Redaction-derived classes.

Methods

Method Description
load Loads an instance of RedactionPolicy from a file path.
load Loads an instance of RedactionPolicy from a stream.
save Saves the redaction policy to a file.
save Saves the redaction policy to a stream.

Remarks

Learn more | | | |

Example

The following example demonstrates how to apply a redaction policy to all files within a given inbound folder, and save to one of outbound folders - for successfully updated files and for failed ones.

The following example contains a sample XML policy file with sample configurations for all types of redactions.

See Also