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