共用方式為


CompositionDependency.Satisfied 方法

定義

建構對指定之目標的相依性。

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

參數

contract
CompositionContract

相依性所需的合約。

target
ExportDescriptorPromise

相依性目標。 來自此組件所依存之另一個組件上的 ExportDescriptorPromise

isPrerequisite
Boolean

true 以指出可以從相依性組件擷取任何匯出前,相依性是否為必須滿足的必要條件;否則為 false

site
Object

標記,用於識別相依性組件上的個別相依性。

傳回

建構的相依性。

適用於