Click or drag to resize

RedactRule Class

Class defines a regular expression rule for redacting text.
Inheritance Hierarchy
SystemObject
  Opait.RedactRedactRule

Namespace:  Opait.Redact
Assembly:  Opait.Redact (in Opait.Redact.dll) Version: 1.3.3.0
Syntax
C#
public sealed class RedactRule

The RedactRule type exposes the following members.

Constructors
  NameDescription
Public methodRedactRule(String)
Initialize a user defined instance of the RedactRule class.
Public methodRedactRule(XElement)
Initialize a new instance of the RedactRule class from the specified XML element.
Top
Properties
  NameDescription
Public propertyCanSave
Gets a flag to indicate whether the rule should be saved.
Public propertyIsValid
Checks whether the rule is valid.
Public propertyMaskChar
Gets or sets a character that masks redacted text. Default is space.
Public propertyMaskLength
The number of characters to redact based on the MaskType.
Public propertyMaskType
Gets or sets the type of character masking to perform.
Public propertyName
Gets or sets the name of the redaction rule (e.g. SSN).
Public propertyPattern
Gets or sets the regular expression pattern for detecting redaction elements (e.g. SSN, email, phone, etc.)
Public propertyRedactType
Gets or sets the type of redaction to perform on detected patterns.
Public propertySearchOptions
Gets the search options for matching the pattern
Public propertyUserDefined
Gets or sets a value to identify a user-defined rule
Top
Methods
  NameDescription
Public methodStatic memberFindRule
Finds a predefined rule by name.
Public methodFromXml
Loads the readction rule from the specified XML element.
Public methodStatic memberGetStandardPattern
Finds a named standard regular expression pattern.
Public methodStatic memberGetStandardRules
Gets a copy of the standard predefined rules.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodToXml
Saves the current instance as an XML element.
Top
Fields
  NameDescription
Public fieldIsActive
If set, the replacement rule is active.
Top
See Also