DefaultModelBindingContext.ValidationState 属性

定义

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

public:
 virtual 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 override Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary ValidationState { get; set; }
member this.ValidationState : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary with get, set
Public Overrides Property ValidationState As ValidationStateDictionary

属性值

适用于