You can, instead, use the following in place of the expected line of code.
@(ViewContext.ClientValidationEnabled = true)
Probably an oversight in the extension methods for htmlhelper.
Actually, you can use the HtmlHelper method by doing the following
@{ Html.EnableClientValidation(); }
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…