Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContainerConfiguration::WithPart<TPart> Method (AttributedModelProvider^)

.NET Framework (current version)
 

Adds the specified generic type to the container.

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

public:
generic<typename TPart>
ContainerConfiguration^ WithPart(
	AttributedModelProvider^ conventions
)

Parameters

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.

Type Parameters

TPart

The type to add.

Return to top
Show:
© 2017 Microsoft