Delen via


ContainerConfiguration.WithAssemblies Method

Definition

Overloads

WithAssemblies(IEnumerable<Assembly>)

Adds part types from the specified collection of assemblies to the container.

WithAssemblies(IEnumerable<Assembly>, AttributedModelProvider)

Adds part types from the specified collection of assemblies to the container, using the specified conventions.

WithAssemblies(IEnumerable<Assembly>)

Source:
ContainerConfiguration.cs
Source:
ContainerConfiguration.cs
Source:
ContainerConfiguration.cs
Source:
ContainerConfiguration.cs

Adds part types from the specified collection of assemblies to the container.

public:
 System::Composition::Hosting::ContainerConfiguration ^ WithAssemblies(System::Collections::Generic::IEnumerable<System::Reflection::Assembly ^> ^ assemblies);
public System.Composition.Hosting.ContainerConfiguration WithAssemblies (System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies);
member this.WithAssemblies : seq<System.Reflection.Assembly> -> System.Composition.Hosting.ContainerConfiguration
Public Function WithAssemblies (assemblies As IEnumerable(Of Assembly)) As ContainerConfiguration

Parameters

assemblies
IEnumerable<Assembly>

The assemblies to add part types from.

Returns

An object that can be used to further configure the container.

Applies to

WithAssemblies(IEnumerable<Assembly>, AttributedModelProvider)

Source:
ContainerConfiguration.cs
Source:
ContainerConfiguration.cs
Source:
ContainerConfiguration.cs
Source:
ContainerConfiguration.cs

Adds part types from the specified collection of assemblies to the container, using the specified conventions.

public:
 System::Composition::Hosting::ContainerConfiguration ^ WithAssemblies(System::Collections::Generic::IEnumerable<System::Reflection::Assembly ^> ^ assemblies, System::Composition::Convention::AttributedModelProvider ^ conventions);
public System.Composition.Hosting.ContainerConfiguration WithAssemblies (System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies, System.Composition.Convention.AttributedModelProvider conventions);
member this.WithAssemblies : seq<System.Reflection.Assembly> * System.Composition.Convention.AttributedModelProvider -> System.Composition.Hosting.ContainerConfiguration
Public Function WithAssemblies (assemblies As IEnumerable(Of Assembly), conventions As AttributedModelProvider) As ContainerConfiguration

Parameters

assemblies
IEnumerable<Assembly>

The assemblies to add part types from.

conventions
AttributedModelProvider

The conventions to use for part types.

Returns

An object that can be used to further configure the container.

Applies to