共用方式為


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

屬性值

備註

屬性 setter 僅供單元測試之用。

適用於