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