ModelBindingContext.ModelState 属性

定义

获取或设置 ,用于 ModelStateDictionary 在绑定时捕获 ModelStateEntry 模型对象图中的属性的值。

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

属性值

注解

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

适用于