Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    SimpleValidationModel(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 Source

    Message

    Gets the overall validation message.

    Declaration
    public string Message { get; }
    Property Value
    Type Description
    string
    View Source

    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>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX