Skip to content

ObjectValidationFailure class

namespace: Serenity.ComponentModel   assembly: Serenity.Net.Core

Why an object is not valid, see ValidateObject: the first property whose value is not.

public class ObjectValidationFailure
parameter description
propertyName The name of the property.
message The message of the rule the value is not valid by, or null for a required value that is missing.

Public Members

name description
ObjectValidationFailure(…) Why an object is not valid, see ValidateObject: the first property whose value is not.
IsRequired { get; } Gets whether a required value is missing.
Message { get; } Gets the message of the rule the value is not valid by, or null when a required value is missing, which is told the way the required fields are, e.g. with the title of the field.
PropertyName { get; } Gets the name of the property.

See Also