共用方式為


ContainerConfiguration 類別

定義

設定並建構輕量型容器。

public ref class ContainerConfiguration
public class ContainerConfiguration
type ContainerConfiguration = class
Public Class ContainerConfiguration
繼承
ContainerConfiguration

建構函式

ContainerConfiguration()

初始化 ContainerConfiguration 類別的新執行個體。

方法

CreateContainer()

建立容器。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
WithAssemblies(IEnumerable<Assembly>)

將組件類型從指定的組譯碼集合加入至容器。

WithAssemblies(IEnumerable<Assembly>, AttributedModelProvider)

使用指定的慣例,將組件類型從指定的組譯碼集合加入至容器。

WithAssembly(Assembly)

將組件類型從指定的組譯碼加入至容器。

WithAssembly(Assembly, AttributedModelProvider)

使用指定的慣例,將組件類型從指定的組譯碼加入至容器。

WithDefaultConventions(AttributedModelProvider)

指定要用於加入之組件的預設慣例。

WithExport(Type, Object)

將單一實例新增至容器。

WithExport(Type, Object, String, IDictionary<String,Object>)

將單一實例新增至容器。

WithExport<TExport>(TExport)

將單一實例新增至容器。

WithExport<TExport>(TExport, String, IDictionary<String,Object>)

將單一實例新增至容器。

WithPart(Type)

將指定的組件類型加入至容器。

WithPart(Type, AttributedModelProvider)

將指定的組件類型加入至容器。

WithPart<TPart>()

將指定的類型新增到容器。

WithPart<TPart>(AttributedModelProvider)

使用指定的慣例將指定類型新增到容器。

WithParts(IEnumerable<Type>)

將指定的組件類型加入至容器。

WithParts(IEnumerable<Type>, AttributedModelProvider)

使用指定的慣例將指定組件新增到容器。

WithParts(Type[])

將指定的組件類型陣列加入至容器。

WithProvider(ExportDescriptorProvider)

加入指定的提供者至容器。

適用於