Try our conversational search powered by Generative AI!

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.

Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public abstract class PropertyValidationSettingsBase : 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