語言

ContainerConfiguration 類別

定義

配置並製作輕量化容器。

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

建構函式

名稱 Description
ContainerConfiguration()

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

方法

名稱 Description
CreateContainer()

創造容器。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

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

根據指定的組裝套件,將零件類型加入容器,並依照規定的慣例進行。

WithAssemblies(IEnumerable<Assembly>)

將指定的組件集合中的零件類型加入容器。

WithAssembly(Assembly, AttributedModelProvider)

根據指定的慣例,將指定的組件類型加入容器。

WithAssembly(Assembly)

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

WithDefaultConventions(AttributedModelProvider)

指定新增零件的預設慣例。

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

在容器中新增一個實例。

WithExport(Type, Object)

在容器中新增一個實例。

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

在容器中新增一個實例。

WithExport<TExport>(TExport)

在容器中新增一個實例。

WithPart(Type, AttributedModelProvider)

會將指定的零件類型加入容器。

WithPart(Type)

會將指定的零件類型加入容器。

WithPart<TPart>()

會將指定的類型加入容器。

WithPart<TPart>(AttributedModelProvider)

利用指定的慣例將指定的型別加入容器。

WithParts(IEnumerable<Type>, AttributedModelProvider)

利用指定的慣例將指定的零件類型加入容器。

WithParts(IEnumerable<Type>)

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

WithParts(Type[])

會將指定的零件類型陣列加入容器。

WithProvider(ExportDescriptorProvider)

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

適用於