1 type derived from ExportAttribute
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\InheritedExportAttribute.cs (1)
12public class InheritedExportAttribute : ExportAttribute
1 instantiation of ExportAttribute
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (1)
69attributes.Add(new ExportAttribute(_contractName, _contractType));
25 references to ExportAttribute
System.ComponentModel.Composition (21)
System\ComponentModel\Composition\AttributedModel\AttributedExportDefinition.cs (2)
16private readonly ExportAttribute _exportAttribute; 21public AttributedExportDefinition(AttributedPartCreationInfo partCreationInfo, MemberInfo member, ExportAttribute exportAttribute, Type? typeIdentityType, string contractName)
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (1)
134bool isPrerequisite = member.GetAttributes<ExportAttribute>().Length > 0;
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (4)
265foreach (ExportAttribute exportAttribute in member.GetAttributes<ExportAttribute>()) 315private AttributedExportDefinition CreateExportDefinition(MemberInfo member, ExportAttribute exportAttribute) 409return attributeProvider.IsAttributeDefined<ExportAttribute>(false);
System\ComponentModel\Composition\ExportAttribute.cs (4)
16/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 36/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 67/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 92/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the
System\ComponentModel\Composition\ExportMetadataAttribute.cs (1)
8/// <see cref="ExportAttribute"/>.
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
17internal static readonly Type ExportAttributeType = typeof(ExportAttribute); 98internal static void GetContractInfoFromExport(this MemberInfo member, ExportAttribute export, out Type? typeIdentityType, out string contractName) 133private static Type? GetTypeIdentityTypeFromExport(this MemberInfo member, ExportAttribute export) 145internal static bool IsContractNameSameAsTypeIdentity(this ExportAttribute export)
System\ComponentModel\Composition\InheritedExportAttribute.cs (4)
15/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 35/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 65/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the 90/// Initializes a new instance of the <see cref="ExportAttribute"/> class, exporting the
System\ComponentModel\Composition\MetadataAttributeAttribute.cs (1)
8/// or method marked with the <see cref="ExportAttribute"/>.
System.ComponentModel.Composition.Registration (4)
System\ComponentModel\Composition\Registration\PartBuilder.cs (4)
14private static readonly Type s_exportAttributeType = typeof(ExportAttribute); 256bool isConfigured = type.GetCustomAttributes(typeof(ExportAttribute), false).FirstOrDefault() != null || MemberHasExportMetadata(type); 326bool isConfigured = type.GetCustomAttributes(typeof(ExportAttribute), false).FirstOrDefault() != null || MemberHasExportMetadata(type); 512isConfigured = pi.GetCustomAttributes(typeof(ExportAttribute), false).FirstOrDefault() != null || MemberHasExportMetadata(pi);