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
- 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
- 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
- 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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기