Share via


ModelBindingContext.ModelState Property

Definition

Gets or sets the ModelStateDictionary used to capture ModelStateEntry values for properties in the object graph of the model when binding.

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

Property Value

Remarks

The property setter is provided for unit testing purposes only.

Applies to