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