ModelBindingContext.ValidationState 属性

定义

获取或设置 ValidationStateDictionary。 用于跟踪验证状态,以自定义模型对象的验证行为。

public:
 abstract property Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ ValidationState { Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ get(); void set(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ value); };
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get; set; }
member this.ValidationState : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary with get, set
Public MustOverride Property ValidationState As ValidationStateDictionary

属性值

注解

属性资源库仅用于单元测试目的。

适用于