ContainerConfiguration::WithPart Method (Type^, AttributedModelProvider^)

.NET Framework (current version)
 

Adds a specified part type to the container.

Namespace:   System.Composition.Hosting
Assembly:  System.Composition.TypedParts (in System.Composition.TypedParts.dll)

public:
ContainerConfiguration^ WithPart(
	Type^ partType,
	AttributedModelProvider^ conventions
)

Parameters

partType
Type: System::Type^

The part type to add.

conventions
Type: System.Composition.Convention::AttributedModelProvider^

Conventions to use for the part type.

Return Value

Type: System.Composition.Hosting::ContainerConfiguration^

An object that provides further configuration.

Return to top
Show: