18 references to Format
System.ComponentModel.Annotations (18)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
162
throw new InvalidOperationException(SR.
Format
(SR.AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties,
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
45
throw new ArgumentException(SR.
Format
(SR.Common_PropertyNotFound, validationContext.ObjectType.FullName, OtherProperty));
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (4)
248
return SR.
Format
(SR.CustomValidationAttribute_Method_Not_Found, Method, ValidatorType.Name);
254
return SR.
Format
(SR.CustomValidationAttribute_Method_Must_Return_ValidationResult, Method, ValidatorType.Name);
262
return SR.
Format
(SR.CustomValidationAttribute_Method_Signature, Method, ValidatorType.Name);
274
return SR.
Format
(SR.CustomValidationAttribute_Method_Signature, Method, ValidatorType.Name);
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (3)
210
throw new InvalidOperationException(SR.
Format
(SR.DisplayAttribute_PropertyNotSet,
239
throw new InvalidOperationException(SR.
Format
(SR.DisplayAttribute_PropertyNotSet,
267
throw new InvalidOperationException(SR.
Format
(SR.DisplayAttribute_PropertyNotSet,
System\ComponentModel\DataAnnotations\RangeAttribute.cs (2)
113
throw new InvalidOperationException(SR.
Format
(SR.RangeAttribute_MinGreaterThanMax, maximum, minimum));
227
throw new InvalidOperationException(SR.
Format
(SR.RangeAttribute_ArbitraryTypeNotIComparable,
System\ComponentModel\DataAnnotations\StringLengthAttribute.cs (1)
93
throw new InvalidOperationException(SR.
Format
(SR.RangeAttribute_MinGreaterThanMax, MaximumLength, MinimumLength));
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (2)
188
throw new InvalidOperationException(SR.
Format
(SR.UIHintImplementation_ControlParameterKeyIsNotAString,
195
throw new InvalidOperationException(SR.
Format
(SR.UIHintImplementation_ControlParameterKeyOccursMoreThanOnce,
System\ComponentModel\DataAnnotations\ValidationAttribute.cs (2)
290
throw new InvalidOperationException(SR.
Format
(SR.ValidationAttribute_ResourceTypeDoesNotHaveProperty,
297
throw new InvalidOperationException(SR.
Format
(SR.ValidationAttribute_ResourcePropertyNotStringType,
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
184
throw new ArgumentException(SR.
Format
(SR.AttributeStore_Unknown_Property, _type.Name, propertyName),
System\ComponentModel\DataAnnotations\Validator.cs (1)
989
throw new ArgumentException(SR.
Format
(SR.Validator_Property_Value_Wrong_Type, propertyName, propertyType),