ContainerConfiguration::WithAssembly Method (Assembly^, AttributedModelProvider^)

.NET Framework (current version)
 

Adds part types from the specified assembly to the container, using the specified conventions.

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

public:
ContainerConfiguration^ WithAssembly(
	Assembly^ assembly,
	AttributedModelProvider^ conventions
)

Parameters

assembly
Type: System.Reflection::Assembly^

The assembly to add part types from.

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: