Class SimpleValidationModel
Represents a simple validation result model containing validation errors.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class SimpleValidationModel
Constructors
View SourceSimpleValidationModel(IDictionary<string, object>, string)
Initializes a new instance of the SimpleValidationModel class.
Declaration
public SimpleValidationModel(IDictionary<string, object> modelState, string message = "The request is invalid.")
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<string, object> | modelState | A dictionary containing the validation errors keyed by property name. |
| string | message | The overall validation message. Defaults to "The request is invalid." |
Properties
View SourceMessage
Gets the overall validation message.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
ModelState
Gets the dictionary containing validation errors keyed by property name.
Declaration
public IDictionary<string, object> ModelState { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |