45 references to Format
System.ComponentModel.Composition (45)
Microsoft\Internal\GenerationServices.cs (1)
156SR.Format(SR.InvalidMetadataValue, value.GetType().FullName));
Microsoft\Internal\Requires.cs (1)
119throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, parameterName), parameterName);
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTraceSource.cs (1)
50throw new Exception(SR.Format(SR.Diagnostic_InternalExceptionMessage, SR.Diagnostic_TraceUnnecessaryWork));
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (1)
55throw new ArgumentException(SR.Format(SR.Argument_ReflectionContextReturnsReflectionOnlyType, nameof(reflectionContext)), nameof(reflectionContext));
System\ComponentModel\Composition\ChangeRejectedException.cs (1)
59return SR.Format(
System\ComponentModel\Composition\ExceptionBuilder.cs (5)
41throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(memberName)), nameof(memberName)); 70throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName)); 94throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName)); 102return new ArgumentException(SR.Format(SR.ReflectionModel_InvalidPartDefinition, partDefinitionType), parameterName); 111throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(typeName)), nameof(typeName));
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (1)
394throw new ArgumentException(SR.Format(SR.Argument_AssemblyReflectionOnly, nameof(assembly)), nameof(assembly));
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
874throw new InvalidOperationException(SR.Format(SR.ObjectMustBeInitialized, "SourceProvider")); // NOLOC
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
407throw new InvalidOperationException(SR.Format(SR.ObjectMustBeInitialized, "SourceProvider")); // NOLOC
System\ComponentModel\Composition\Hosting\ExportProvider.cs (2)
108throw new ImportCardinalityMismatchException(SR.Format(SR.CardinalityMismatch_NoExports, definition)); 114throw new ImportCardinalityMismatchException(SR.Format(SR.CardinalityMismatch_TooManyExports_Constraint, definition));
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
787throw new InvalidOperationException(SR.Format(SR.InvalidMetadataView, metadataViewType.Name));
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (3)
185throw new ArgumentException(SR.Format(SR.Argument_ElementReflectionOnlyType, nameof(types)), nameof(types)); 196throw new ArgumentException(SR.Format(SR.Argument_ReflectionContextReturnsReflectionOnlyType, nameof(reflectionContext)), nameof(reflectionContext)); 216throw new ArgumentException(SR.Format(SR.Argument_ElementReflectionOnlyType, nameof(types)), nameof(types));
System\ComponentModel\Composition\MetadataViewProvider.cs (3)
41throw new NotSupportedException(SR.Format(SR.NotSupportedInterfaceMetadataView, metadataViewType.FullName), ex); 51throw new CompositionContractMismatchException(SR.Format( 91throw new CompositionContractMismatchException(SR.Format(
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
229SR.Format(SR.Argument_NullElement, "requiredMetadata"));
System\ComponentModel\Composition\ReflectionModel\ExportingMember.cs (3)
54SR.Format( 66SR.Format( 94SR.Format(
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (6)
71SR.Format( 83SR.Format( 98SR.Format( 135SR.Format( 172SR.Format( 206SR.Format(
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
204errorMessage = SR.Format(SR.LazyMemberInfo_InvalidAccessorOnSimpleMember, memberType);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (4)
277SR.Format( 374throw new InvalidOperationException(SR.Format( 436SR.Format( 550SR.Format(
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (7)
51SR.Format(SR.ReflectionModel_InvalidExportDefinition, exportDefinition.GetType()), 66SR.Format(SR.ReflectionModel_InvalidMemberImportDefinition, importDefinition.GetType()), 81SR.Format(SR.ReflectionModel_InvalidParameterImportDefinition, importDefinition.GetType()), 97SR.Format(SR.ReflectionModel_InvalidImportDefinition, importDefinition.GetType()), 119SR.Format(SR.ReflectionModel_InvalidImportDefinition, importDefinition.GetType()), 420SR.Format(SR.ReflectionModel_InvalidExportDefinition, export.GetType())); 446SR.Format(SR.ReflectionModel_InvalidMemberImportDefinition, import.GetType()));
System\Composition\Diagnostics\CompositionTrace.cs (1)
49throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(fileName)), nameof(fileName));