Dela via


ModelBindingContext.ValidationState Property

Definition

Gets or sets the ValidationStateDictionary. Used for tracking validation state to customize validation behavior for a model object.

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

Property Value

Remarks

The property setter is provided for unit testing purposes only.

Applies to