HttpError.ModelState Property

Definition

The ModelState containing information about the errors that occurred during model binding.

public System.Web.Http.HttpError ModelState { get; }
member this.ModelState : System.Web.Http.HttpError
Public ReadOnly Property ModelState As HttpError

Property Value

The ModelState containing information about the errors that occurred during model binding.

Remarks

The inclusion of Exception information carried in the ModelState is controlled by the error detail policy. All other information in the ModelState should be considered public in that it will go over the wire. As a result care should be taken not to disclose sensitive information about the server or the application.

Applies to