Enum PhoneNumberRedaction
- Namespace
- ZeroRedact
- Assembly
- ZeroRedact.dll
Defines the different types of redactions that can be applied to a phone number.
public enum PhoneNumberRedaction
Fields
All = 0The phone number is redacted.
Example: "212-456-7890" becomes "************"
FixedLength = 1The phone number is redacted with a fixed length.
Example: "212-456-7890" becomes "********"
Full = 2The phone number is redacted, preserving symbols.
Example: "212-456-7890" becomes "--****"
ShowLastFour = 3The last four digits of the phone number are shown, all other digits are redacted.
Example: "212-456-7890" becomes "--7890".
A phone number with exactly four digits is shown in full, as those four digits are the "last four". With fewer than four digits the "last four" cannot exist, so the input is treated as invalid and every digit is redacted (non-digit characters are preserved), e.g. "911" becomes "***"