Table of Contents

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 Type

The type to reflect over.

typeExplicitlyRequested bool

A 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 Assembly

The assembly to read.

Returns

IEnumerable<Type>

A sequence of types.

IsExportFactoryType(Type)

public override bool IsExportFactoryType(Type type)

Parameters

type Type

Returns

bool