ContainerConfiguration::WithParts Method (IEnumerable<Type^>^, AttributedModelProvider^)

.NET Framework (current version)
 

Adds the specified part types to the container.

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

public:
ContainerConfiguration^ WithParts(
	IEnumerable<Type^>^ partTypes,
	AttributedModelProvider^ conventions
)

Parameters

partTypes
Type: System.Collections.Generic::IEnumerable<Type^>^

A collection of part types to add.

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

Conventions to use for part types.

Return Value

Type: System.Composition.Hosting::ContainerConfiguration^

An object that provides further configuration.

Return to top
Show: