ContainerConfiguration.WithParts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithParts(IEnumerable<Type>) |
Adds the specified part types to the container. |
WithParts(Type[]) |
Adds the specified array of part types to the container. |
WithParts(IEnumerable<Type>, AttributedModelProvider) |
Adds the specified part types to the container using the specified conventions. |
WithParts(IEnumerable<Type>)
- Source:
- ContainerConfiguration.cs
- Source:
- ContainerConfiguration.cs
Adds the specified part types to the container.
public:
System::Composition::Hosting::ContainerConfiguration ^ WithParts(System::Collections::Generic::IEnumerable<Type ^> ^ partTypes);
public System.Composition.Hosting.ContainerConfiguration WithParts (System.Collections.Generic.IEnumerable<Type> partTypes);
member this.WithParts : seq<Type> -> System.Composition.Hosting.ContainerConfiguration
Public Function WithParts (partTypes As IEnumerable(Of Type)) As ContainerConfiguration
Parameters
- partTypes
- IEnumerable<Type>
A collection of part types to add.
Returns
An object that can be used to further configure the container.
Applies to
WithParts(Type[])
- Source:
- ContainerConfiguration.cs
- Source:
- ContainerConfiguration.cs
Adds the specified array of part types to the container.
public:
System::Composition::Hosting::ContainerConfiguration ^ WithParts(... cli::array <Type ^> ^ partTypes);
public System.Composition.Hosting.ContainerConfiguration WithParts (params Type[] partTypes);
member this.WithParts : Type[] -> System.Composition.Hosting.ContainerConfiguration
Public Function WithParts (ParamArray partTypes As Type()) As ContainerConfiguration
Parameters
- partTypes
- Type[]
An array of part types to add.
Returns
An object that can be used to further configure the container.
Applies to
WithParts(IEnumerable<Type>, AttributedModelProvider)
- Source:
- ContainerConfiguration.cs
- Source:
- ContainerConfiguration.cs
Adds the specified part types to the container using the specified conventions.
public:
System::Composition::Hosting::ContainerConfiguration ^ WithParts(System::Collections::Generic::IEnumerable<Type ^> ^ partTypes, System::Composition::Convention::AttributedModelProvider ^ conventions);
public System.Composition.Hosting.ContainerConfiguration WithParts (System.Collections.Generic.IEnumerable<Type> partTypes, System.Composition.Convention.AttributedModelProvider conventions);
member this.WithParts : seq<Type> * System.Composition.Convention.AttributedModelProvider -> System.Composition.Hosting.ContainerConfiguration
Public Function WithParts (partTypes As IEnumerable(Of Type), conventions As AttributedModelProvider) As ContainerConfiguration
Parameters
- partTypes
- IEnumerable<Type>
A collection of part types to add.
- conventions
- AttributedModelProvider
The conventions to use for part types.
Returns
An object that can be used to further configure the container.