CompositionDependency.Satisfied 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.
Constructs a dependency on the specified target.
public:
static System::Composition::Hosting::Core::CompositionDependency ^ Satisfied(System::Composition::Hosting::Core::CompositionContract ^ contract, System::Composition::Hosting::Core::ExportDescriptorPromise ^ target, bool isPrerequisite, System::Object ^ site);
public static System.Composition.Hosting.Core.CompositionDependency Satisfied (System.Composition.Hosting.Core.CompositionContract contract, System.Composition.Hosting.Core.ExportDescriptorPromise target, bool isPrerequisite, object site);
static member Satisfied : System.Composition.Hosting.Core.CompositionContract * System.Composition.Hosting.Core.ExportDescriptorPromise * bool * obj -> System.Composition.Hosting.Core.CompositionDependency
Public Shared Function Satisfied (contract As CompositionContract, target As ExportDescriptorPromise, isPrerequisite As Boolean, site As Object) As CompositionDependency
Parameters
- contract
- CompositionContract
The contract required by the dependency.
- target
- ExportDescriptorPromise
The dependency target. A ExportDescriptorPromise from another part that this part is dependent on.
- isPrerequisite
- Boolean
true
to indicate that the dependency is a prerequisite that must be satisfied before any exports can be retrieved from the dependent part; otherwise, false
.
- site
- Object
A marker used to identify the individual dependency among those on the dependent part.
Returns
The constructed dependency.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈