CompositionDependency::Oversupplied Method (CompositionContract^, IEnumerable<ExportDescriptorPromise^>^, Object^)

.NET Framework (current version)
 

Constructs a placeholder for a dependency that has too many supplied values.

Namespace:   System.Composition.Hosting.Core
Assembly:  System.Composition.Hosting (in System.Composition.Hosting.dll)

public:
static CompositionDependency^ Oversupplied(
	CompositionContract^ contract,
	IEnumerable<ExportDescriptorPromise^>^ targets,
	Object^ site
)

Parameters

contract
Type: System.Composition.Hosting.Core::CompositionContract^

The dependency's contract.

targets
Type: System.Collections.Generic::IEnumerable<ExportDescriptorPromise^>^

A collection of values supplied.

site
Type: System::Object^

A marker for the dependency.

Return Value

Type: System.Composition.Hosting.Core::CompositionDependency^

The placeholder dependency.

Return to top
Show: