Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft