CompositionDependency.Oversupplied 方法

定义

构造有许多提供的值的依赖项占位符。

public:
 static System::Composition::Hosting::Core::CompositionDependency ^ Oversupplied(System::Composition::Hosting::Core::CompositionContract ^ contract, System::Collections::Generic::IEnumerable<System::Composition::Hosting::Core::ExportDescriptorPromise ^> ^ targets, System::Object ^ site);
public static System.Composition.Hosting.Core.CompositionDependency Oversupplied (System.Composition.Hosting.Core.CompositionContract contract, System.Collections.Generic.IEnumerable<System.Composition.Hosting.Core.ExportDescriptorPromise> targets, object site);
static member Oversupplied : System.Composition.Hosting.Core.CompositionContract * seq<System.Composition.Hosting.Core.ExportDescriptorPromise> * obj -> System.Composition.Hosting.Core.CompositionDependency
Public Shared Function Oversupplied (contract As CompositionContract, targets As IEnumerable(Of ExportDescriptorPromise), site As Object) As CompositionDependency

参数

contract
CompositionContract

依赖项所需的协定。

targets
IEnumerable<ExportDescriptorPromise>

提供的值的集合。

site
Object

依赖项的标记。

返回

占位符依赖项。

适用于