Share via


BaseCompareValidator.CutoffYear 属性

定义

获取可以用两位数的年份表示的最大年份。

protected:
 static property int CutoffYear { int get(); };
protected static int CutoffYear { get; }
static member CutoffYear : int
Protected Shared ReadOnly Property CutoffYear As Integer

属性值

可以用两位数的年份表示的最大年份。

注解

CutoffYear使用 属性确定可在 100 年范围内用两位数年份表示的最大年份。 例如,如果此属性包含值 2029,则可以使用两位数的年份表示 1930 到 2029 年。 两位数的年份 30 解释为 1930 年,而 29 年解释为 2029 年。 不能直接更改此属性的值;但是,可以通过设置 Calendar.TwoDigitYearMax 属性来更改可以用两位数年份表示的最大年份。

适用于

另请参阅