Try our conversational search powered by Generative AI!

Class LengthValidationSettings

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Settings for configuring validation of string and list properties ensuring that they matches a specified length.

Inheritance
System.Object
LengthValidationSettings
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
[PropertyValidationSettings("Length", typeof(PropertyString))]
[PropertyValidationSettings("Length", typeof(PropertyList))]
[PropertyValidationSettings("Length", typeof(PropertyLinkCollection))]
public class LengthValidationSettings : PropertyValidationSettingsBase, IPropertyValidationSettings, IPropertySettings

Constructors

LengthValidationSettings()

Declaration
public LengthValidationSettings()

Fields

Name

The name defined for this type of validation

Declaration
public const string Name = "Length"
Field Value
Type Description
System.String

Properties

Maximum

The maximum allowed length that the property value should be validated against.

Declaration
public int? Maximum { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
Remarks

This value is inclusive.

Minimum

The smallest allowed length that the property value should be validated against.

Declaration
public int? Minimum { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>
Remarks

This value is inclusive.

Implements

Extension Methods