7 references to Format
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
41
return new ValidationResult(SR.
Format
(SR.CompareAttribute_UnknownProperty, OtherProperty));
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
226
return SR.
Format
(SR.CustomValidationAttribute_Type_Must_Be_Public, ValidatorType.Name);
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (1)
30
throw new InvalidOperationException(SR.
Format
(SR.EnumDataTypeAttribute_TypeNeedsToBeAnEnum, EnumType.FullName));
System\ComponentModel\DataAnnotations\LengthAttribute.cs (1)
67
throw new InvalidCastException(SR.
Format
(SR.LengthAttribute_InvalidValueType, value.GetType()));
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
84
throw new InvalidCastException(SR.
Format
(SR.LengthAttribute_InvalidValueType, value.GetType()));
System\ComponentModel\DataAnnotations\MinLengthAttribute.cs (1)
67
throw new InvalidCastException(SR.
Format
(SR.LengthAttribute_InvalidValueType, value.GetType()));
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (1)
183
throw new InvalidOperationException(SR.
Format
(SR.UIHintImplementation_ControlParameterKeyIsNull, i));