Table of Contents

Class ItemRelationListMaxValidator

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a max rows number validator.
public class ItemRelationListMaxValidator : Validator
Inheritance
ItemRelationListMaxValidator
Inherited Members

Constructors

ItemRelationListMaxValidator(ItemRelationListEditor)

Initializes a new instance of an object.
public ItemRelationListMaxValidator(ItemRelationListEditor editor)

Parameters

editor ItemRelationListEditor
File editor.

Properties

Editor

Gets or sets the value editor.
public ItemRelationListEditor Editor { get; set; }

Property Value

ItemRelationListEditor

Methods

RenderValidator(string, EditFormField)

Render validation script.
[Obsolete("Do not use")]
public override string RenderValidator(string context, EditFormField field)

Parameters

context string
The validation context.
field EditFormField
The field.

Returns

string
Value indicating whether validation was successful.

Validate(ValidatorContext)

Performs validation and returns value indicating whether validation was successful.
public override bool Validate(ValidatorContext context)

Parameters

context ValidatorContext
Validation context.

Returns

bool
Value indicating whether validation was successful.
To top