Class AttributedPartDiscoveryV1
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
public class AttributedPartDiscoveryV1 : PartDiscovery
- Inheritance
-
AttributedPartDiscoveryV1
- Inherited Members
Constructors
AttributedPartDiscoveryV1(Resolver)
public AttributedPartDiscoveryV1(Resolver resolver)
Parameters
resolver
Resolver
Methods
CreatePart(Type, bool)
Reflects on a type and returns metadata on its role as a MEF part, if applicable.
protected override ComposablePartDefinition? CreatePart(Type partType, bool typeExplicitlyRequested)
Parameters
partType
TypeThe type to reflect over.
typeExplicitlyRequested
boolA value indicating whether this type was explicitly requested for inclusion in the catalog.
Returns
- ComposablePartDefinition
A new instance of ComposablePartDefinition if
partType
represents a MEF part; otherwise null.
GetTypes(Assembly)
Gets the types to consider for MEF parts.
protected override IEnumerable<Type> GetTypes(Assembly assembly)
Parameters
assembly
AssemblyThe assembly to read.
Returns
- IEnumerable<Type>
A sequence of types.
IsExportFactoryType(Type)
public override bool IsExportFactoryType(Type type)
Parameters
type
Type