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