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

.NET Framework (current version)
 

Resolves a required dependency on one implementation of a contract.

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

public:
CompositionDependency^ ResolveRequiredDependency(
	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.Composition.Hosting.Core::CompositionDependency^

The resolved dependency.

Return to top
Show: