Table of Contents

Class ExtensionValidator

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll

Represents a required value validator.

public class ExtensionValidator : Validator
Inheritance
ExtensionValidator
Inherited Members

Constructors

ExtensionValidator(FileEditor, bool)

Initializes a new instance of an object.

public ExtensionValidator(FileEditor editor, bool deleteNotAllowedFile)

Parameters

editor FileEditor
deleteNotAllowedFile bool

Properties

DeleteNotAllowedFile

public bool DeleteNotAllowedFile { get; set; }

Property Value

bool

Editor

Gets or sets the value editor.

public FileEditor Editor { get; set; }

Property Value

FileEditor

Methods

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