CompositionDependency.Satisfied Method

Definition

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