Delen via


ApiController.ModelState Property

Definition

Gets model state after the model binding process. This ModelState will be empty before model binding happens.

public Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary ModelState { get; }
member this.ModelState : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public ReadOnly Property ModelState As ModelStateDictionary

Property Value

The model state after the model binding process.

Applies to