DependencyAccessor::ResolveDependencies Method (Object^, CompositionContract^, Boolean)

.NET Framework (current version)
 

Resolve dependencies on all implementations of a contract.

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

public:
IEnumerable<CompositionDependency^>^ ResolveDependencies(
	Object^ site,
	CompositionContract^ contract,
	bool isPrerequisite
)

Parameters

site
Type: System::Object^

A tag that describes the dependency site.

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

The contract required by the site.

isPrerequisite
Type: System::Boolean

A value that indicates whether the dependency must be satisfied before exports are made available.

Return Value

Type: System.Collections.Generic::IEnumerable<CompositionDependency^>^

A collection of resolved dependencies.

Return to top
Show: