假设我有一个如下所示的配置属性。请注意,没有默认值。[ConfigurationProperty("x",IsRequired=true)][StringValidator(MinLength=1)]publicstringX{get{return(string)this["x"];}set{this["x"]=value;}}现在我像这样添加我的部分:我会得到这个错误:Thevaluefortheproperty'x'isnotvalid.Theerroris:Thestringmustbeatleast1characterslong.如果我更改配置属性以包含如下默认值,它会起作用: