ContainerConfiguration.WithProvider(ExportDescriptorProvider) 方法

定义

将指定的提供程序添加到容器中。

public:
 System::Composition::Hosting::ContainerConfiguration ^ WithProvider(System::Composition::Hosting::Core::ExportDescriptorProvider ^ exportDescriptorProvider);
public System.Composition.Hosting.ContainerConfiguration WithProvider (System.Composition.Hosting.Core.ExportDescriptorProvider exportDescriptorProvider);
member this.WithProvider : System.Composition.Hosting.Core.ExportDescriptorProvider -> System.Composition.Hosting.ContainerConfiguration
Public Function WithProvider (exportDescriptorProvider As ExportDescriptorProvider) As ContainerConfiguration

参数

exportDescriptorProvider
ExportDescriptorProvider

要添加的提供程序。

返回

可用于进一步配置容器的对象。

适用于