1 write to MaximumLength
System.ComponentModel.DataAnnotations (1)
DataAnnotations\StringLengthAttribute.cs (1)
34
this.
MaximumLength
= maximumLength;
7 references to MaximumLength
System.ComponentModel.DataAnnotations (5)
DataAnnotations\StringLengthAttribute.cs (5)
57
return value == null || (length >= this.MinimumLength && length <= this.
MaximumLength
);
76
return String.Format(CultureInfo.CurrentCulture, errorMessage, name, this.
MaximumLength
, this.MinimumLength);
83
if (this.
MaximumLength
< 0) {
87
if (this.
MaximumLength
< this.MinimumLength) {
88
throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.RangeAttribute_MinGreaterThanMax, this.
MaximumLength
, this.MinimumLength));
System.Web (1)
ModelBinding\StringLengthAttributeAdapter.cs (1)
10
return GetLocalizedString(errorMessage, Metadata.GetDisplayName(), Attribute.MinimumLength, Attribute.
MaximumLength
);
System.Web.DynamicData (1)
DynamicData\MetaColumn.cs (1)
223
return stringLengthAttribute != null ? stringLengthAttribute.
MaximumLength
: Provider.MaxLength;