BuildMaster SDK Reference
Version:

DpValidateAttribute Class

Validation for properties for a model.

Inheritance Hierarchy

  • object
    • System.Attribute
      • Inedo.Web.DP.DpValidateAttribute

Syntax

public class DpValidateAttribute : System.Attribute, Inedo.Web.Controls.ISimpleValidationExpression

Constructors

Name Description
DpValidateAttribute

Properties

Name Description
FieldName

Gets or sets the name of the field.

MaxLength

Gets or sets the maximum length.

Pattern

Gets or sets a regular expression pattern.

Required

Gets or sets a value indicating whether the value is required.

ServerValidatorType

Gets or sets the type of the server validator; this must be a IDpServerValidator.

Type

Gets or sets the type.

Methods

Name Description
ApplyToJsonValidator(System.Collections.Generic.Dictionary<string, object> jsonProps)

Applies the properties of this instance to a JSON-based validator