November Happy Hour will be moved to Thursday December 5th.

Class PropertyValidationSettingsBase

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Base class for IPropertyValidationSettings implementations.

Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public abstract class PropertyValidationSettingsBase : Object, IPropertyValidationSettings, IPropertySettings

Constructors

PropertyValidationSettingsBase()

Declaration
protected PropertyValidationSettingsBase()

Properties

ErrorMessage

Gets or sets the default error message to use for any validation error.

Declaration
public string ErrorMessage { get; set; }
Property Value
Type Description
System.String

Id

Gets or sets the id.

Declaration
public Guid Id { get; set; }
Property Value
Type Description
System.Guid

The id.

Severity

Indicates the severity that an validation error based on these settings should have.

Declaration
public ValidationErrorSeverity Severity { get; set; }
Property Value
Type Description
ValidationErrorSeverity

Methods

Copy()

Declaration
protected virtual IPropertyValidationSettings Copy()
Returns
Type Description
IPropertyValidationSettings

GetDefaultValues()

Declaration
protected virtual IPropertyValidationSettings GetDefaultValues()
Returns
Type Description
IPropertyValidationSettings

Explicit Interface Implementations

IPropertySettings.Copy()

Copies this instance.

Declaration
IPropertySettings IPropertySettings.Copy()
Returns
Type Description
IPropertySettings

A copy of this instance.

Remarks

If the settings contains object references it is up to the implementation of the copy method to copy the referenced objects as well.

IPropertySettings.GetDefaultValues()

Gets the default value.

Declaration
IPropertySettings IPropertySettings.GetDefaultValues()
Returns
Type Description
IPropertySettings

Programmatically determined default values

Implements

Extension Methods