DependencyAccessor.ResolveRequiredDependency Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resolves a required dependency on one implementation of a contract.
public:
System::Composition::Hosting::Core::CompositionDependency ^ ResolveRequiredDependency(System::Object ^ site, System::Composition::Hosting::Core::CompositionContract ^ contract, bool isPrerequisite);
public System.Composition.Hosting.Core.CompositionDependency ResolveRequiredDependency (object site, System.Composition.Hosting.Core.CompositionContract contract, bool isPrerequisite);
member this.ResolveRequiredDependency : obj * System.Composition.Hosting.Core.CompositionContract * bool -> System.Composition.Hosting.Core.CompositionDependency
Public Function ResolveRequiredDependency (site As Object, contract As CompositionContract, isPrerequisite As Boolean) As CompositionDependency
Parameters
- site
- Object
A tag that describes the dependency site.
- contract
- CompositionContract
The contract required by the site.
- isPrerequisite
- Boolean
true
to indicate that the dependency must be satisfied before exports are made available; otherwise, false
.
Returns
The resolved dependency.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.