Enum DateRedaction
- Namespace
- ZeroRedact
- Assembly
- ZeroRedact.dll
Defines the different types of redactions that can be applied to a date.
public enum DateRedaction
Fields
All = 0
The date is redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "*********"
- en-US: "********"
- ja-JP: "********"
- InvariantCulture: "********"
Day = 3
The day is redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "**/06/2023"
- en-US: "6/**/2023"
- ja-JP: "2023/06/**"
- InvariantCulture: "06/**/2023"
DayAndMonth = 6
The day and month are redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "**/**/2023"
- en-US: "*/**/2023"
- ja-JP: "2023/**/**"
- InvariantCulture: "**/**/2023"
DayAndYear = 8
The day and year are redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "**/06/****"
- en-US: "6/**/****"
- ja-JP: "****/06/**"
- InvariantCulture: "06/**/****"
FixedLength = 1
The date is redacted with a fixed length.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "********"
- en-US: "********"
- ja-JP: "********"
- InvariantCulture: "********"
Full = 2
The date is redacted, showing the date separator.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "**/**/****"
- en-US: "*/**/****"
- ja-JP: "****/**/**"
- InvariantCulture: "**/**/****"
Month = 4
The month is redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "15/**/2023"
- en-US: "*/15/2023"
- ja-JP: "2023/**/15"
- InvariantCulture: "**/15/2023"
MonthAndYear = 7
The month and year are redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "15/**/****"
- en-US: "*/15/****"
- ja-JP: "****/**/15"
- InvariantCulture: "**/15/****"
Year = 5
The year is redacted.
Takes the current CultureInfo into account.
Example for "2023/06/15":
- en-NZ: "15/06/****"
- en-US: "6/15/****"
- ja-JP: "****/06/15"
- InvariantCulture: "06/15/****"