28 references to Format
System.ComponentModel.TypeConverter (28)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)),
System\ComponentModel\ArrayConverter.cs (1)
22return SR.Format(SR.UsingResourceKeys() ? "{0} Array" : SR.Array, value.GetType().Name);
System\ComponentModel\Container.cs (1)
237throw new ArgumentException(SR.Format(SR.DuplicateComponentName, name));
System\ComponentModel\CultureInfoConverter.cs (1)
127throw new ArgumentException(SR.Format(SR.CultureInfoConverterInvalidCulture, (string)value), nameof(value));
System\ComponentModel\Design\DesignerOptionService.cs (1)
42throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, "name.Length"), nameof(name));
System\ComponentModel\Design\PropertyTabAttribute.cs (1)
134throw new TypeLoadException(SR.Format(SR.PropertyTabAttributeTypeLoadException, className));
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
46throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Owner"), nameof(source)); 59throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Owner"), nameof(source));
System\ComponentModel\Design\ServiceContainer.cs (3)
85throw new ArgumentException(SR.Format(SR.ErrorInvalidServiceInstance, serviceType.FullName)); 90throw new ArgumentException(SR.Format(SR.ErrorServiceExists, serviceType.FullName), nameof(serviceType)); 127throw new ArgumentException(SR.Format(SR.ErrorServiceExists, serviceType.FullName), nameof(serviceType));
System\ComponentModel\LicenseException.cs (1)
26public LicenseException(Type? type) : this(type, null, SR.Format(SR.LicExceptionTypeOnly, type?.FullName))
System\ComponentModel\ReflectEventDescriptor.cs (5)
83throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 87throw new ArgumentException(SR.Format(SR.ErrorInvalidEventType, name)); 101_componentClass = componentClass ?? throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 195throw new ArgumentException(SR.Format(SR.ErrorInvalidEventHandler, Name)); 369throw new ArgumentException(SR.Format(SR.ErrorMissingEventAccessors, Name));
System\ComponentModel\ReflectPropertyDescriptor.cs (5)
95throw new ArgumentException(SR.Format(SR.ErrorInvalidPropertyType, name)); 100throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 171throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 343throw new InvalidOperationException(SR.Format(SR.ErrorMissingPropertyAccessors, _componentClass.FullName + "." + Name)); 351throw new ArgumentException(SR.Format(SR.ErrorMissingPropertyAccessors, Name));
System\ComponentModel\ToolboxItemAttribute.cs (1)
93throw new ArgumentException(SR.Format(SR.ToolboxItemAttributeFailedGetType, _toolboxItemTypeName), ex);
System\ComponentModel\TypeDescriptor.cs (5)
2095throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(Attribute).FullName)); 2108throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(PropertyDescriptor).FullName)); 2121throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(EventDescriptor).FullName)); 4209throw new NotImplementedException(SR.Format(SR.CustomTypeProviderNotImplemented, memberName)); 4213throw new InvalidOperationException(SR.Format(SR.TypeIsNotRegistered, type.FullName));