共用方式為


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

屬性值

適用於